diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-12-13 03:10:16 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-12-20 17:44:20 +0100 |
commit | 027712e851da4d124a842c9e2802f95d50582553 (patch) | |
tree | 5508709768bfde7eaa16438be9ab4415b7286219 /libavformat | |
parent | dfc50ac85e9d68a771b556297b7c411650206f3b (diff) | |
download | ffmpeg-027712e851da4d124a842c9e2802f95d50582553.tar.gz |
jvdec: Return EOF on end of file
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/jvdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |