au demuxer: pass av_get_packet error on unchanged instead of converting to
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Thu, 1 Oct 2009 17:08:33 +0000 (17:08 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Thu, 1 Oct 2009 17:08:33 +0000 (17:08 +0000)
AVERROR(EIO).

Originally committed as revision 20127 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/au.c

index cc243ea..3b8faae 100644 (file)
@@ -168,7 +168,7 @@ static int au_read_packet(AVFormatContext *s,
         return AVERROR(EIO);
     ret= av_get_packet(s->pb, pkt, MAX_SIZE);
     if (ret < 0)
-        return AVERROR(EIO);
+        return ret;
     pkt->stream_index = 0;
 
     /* note: we need to modify the packet size here to handle the last