Commit d3298350 authored by Michael Niedermayer's avatar Michael Niedermayer

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
...@@ -248,8 +248,8 @@ static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt) ...@@ -248,8 +248,8 @@ static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
int64_t cur_time; int64_t cur_time;
struct audio_buf_info abufi; struct audio_buf_info abufi;
if (av_new_packet(pkt, s->frame_size) < 0) if ((ret=av_new_packet(pkt, s->frame_size)) < 0)
return AVERROR(EIO); return ret;
ret = read(s->fd, pkt->data, pkt->size); ret = read(s->fd, pkt->data, pkt->size);
if (ret <= 0){ if (ret <= 0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment