matroskadec: return AVERROR_EOF upon detection of end of file
authorAurelien Jacobs <aurel@gnuage.org>
Thu, 19 Feb 2009 21:01:45 +0000 (21:01 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Thu, 19 Feb 2009 21:01:45 +0000 (21:01 +0000)
Originally committed as revision 17460 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/matroskadec.c

index 4ba3514..2f2d444 100644 (file)
@@ -1761,7 +1761,7 @@ static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt)
 
     while (matroska_deliver_packet(matroska, pkt)) {
         if (matroska->done)
-            return AVERROR(EIO);
+            return AVERROR_EOF;
         matroska_parse_cluster(matroska);
     }