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; }