return AVERROR_EOF
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 30 May 2009 06:15:27 +0000 (06:15 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 30 May 2009 06:15:27 +0000 (06:15 +0000)
Originally committed as revision 18992 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mov.c

index ef097a8..95341e6 100644 (file)
@@ -2025,7 +2025,7 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
         if (!url_is_streamed(s->pb) ||
             mov_read_default(mov, s->pb, (MOVAtom){ 0, 0, INT64_MAX }) < 0 ||
             url_feof(s->pb))
         if (!url_is_streamed(s->pb) ||
             mov_read_default(mov, s->pb, (MOVAtom){ 0, 0, INT64_MAX }) < 0 ||
             url_feof(s->pb))
-            return -1;
+            return AVERROR_EOF;
         dprintf(s, "read fragments, offset 0x%llx\n", url_ftell(s->pb));
         goto retry;
     }
         dprintf(s, "read fragments, offset 0x%llx\n", url_ftell(s->pb));
         goto retry;
     }