From 350f2c2cef6ef42975301cdfff4483868463f0fe Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sat, 30 May 2009 06:15:27 +0000 Subject: [PATCH] return AVERROR_EOF Originally committed as revision 18992 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index ef097a85ca..95341e6309 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -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)) - return -1; + return AVERROR_EOF; dprintf(s, "read fragments, offset 0x%llx\n", url_ftell(s->pb)); goto retry; }