OSDN Git Service

AVI demuxer: return AVERROR_EOF upon detection of end of file.
authorPeter Ross <pross@xvid.org>
Thu, 19 Feb 2009 12:19:33 +0000 (12:19 +0000)
committerPeter Ross <pross@xvid.org>
Thu, 19 Feb 2009 12:19:33 +0000 (12:19 +0000)
Originally committed as revision 17456 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/avidec.c

index 69c9051..e3cc14c 100644 (file)
@@ -870,7 +870,7 @@ resync:
         }
     }
 
-    return -1;
+    return AVERROR_EOF;
 }
 
 /* XXX: We make the implicit supposition that the positions are sorted