diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c index 69ac8f27fd..60c1bd9222 100644 --- a/libavformat/jvdec.c +++ b/libavformat/jvdec.c @@ -184,6 +184,9 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) } } + if (s->pb->eof_reached) + return AVERROR_EOF; + return AVERROR(EIO); }