From 027712e851da4d124a842c9e2802f95d50582553 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 13 Dec 2013 03:10:16 +0100 Subject: jvdec: Return EOF on end of file --- libavformat/jvdec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/jvdec.c') 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); } -- cgit v1.2.3