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

Originally committed as revision 20630 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2009-11-27 13:48:37 +00:00
parent fed0c2fb71
commit d3298350bb
1 changed files with 2 additions and 2 deletions

View File

@ -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){