Skip to content
Snippets Groups Projects
Commit d3298350 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Do not invent error codes but pass the error code on.

Originally committed as revision 20630 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent fed0c2fb
No related branches found
No related tags found
No related merge requests found
......@@ -248,8 +248,8 @@ static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
int64_t cur_time;
struct audio_buf_info abufi;
if (av_new_packet(pkt, s->frame_size) < 0)
return AVERROR(EIO);
if ((ret=av_new_packet(pkt, s->frame_size)) < 0)
return ret;
ret = read(s->fd, pkt->data, pkt->size);
if (ret <= 0){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment