diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 69c9051cea..e3cc14c958 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -870,7 +870,7 @@ resync: } } - return -1; + return AVERROR_EOF; } /* XXX: We make the implicit supposition that the positions are sorted