diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c index cf9df8c977..caf29a8f6c 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); }