Return special EOF checking for aiff and au demuxers, the check was at
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 2 Oct 2009 06:42:20 +0000 (06:42 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 2 Oct 2009 06:42:20 +0000 (06:42 +0000)
the wrong place, causing an empty packet to be read before EOF was
detected and the eof detection is already now handled by av_get_packet anyway.

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

libavformat/aiff.c
libavformat/au.c

index 41721e2..570e05d 100644 (file)
@@ -422,10 +422,6 @@ static int aiff_read_packet(AVFormatContext *s,
     AVStream *st = s->streams[0];
     int res;
 
-    /* End of stream may be reached */
-    if (url_feof(s->pb))
-        return AVERROR(EIO);
-
     /* Now for that packet */
     res = av_get_packet(s->pb, pkt, (MAX_SIZE / st->codec->block_align) * st->codec->block_align);
     if (res < 0)
index 3b8faae..24bdb62 100644 (file)
@@ -164,8 +164,6 @@ static int au_read_packet(AVFormatContext *s,
 {
     int ret;
 
-    if (url_feof(s->pb))
-        return AVERROR(EIO);
     ret= av_get_packet(s->pb, pkt, MAX_SIZE);
     if (ret < 0)
         return ret;