summaryrefslogtreecommitdiff
path: root/libavformat/jvdec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-12-13 03:10:16 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-12-20 17:44:20 +0100
commit027712e851da4d124a842c9e2802f95d50582553 (patch)
tree5508709768bfde7eaa16438be9ab4415b7286219 /libavformat/jvdec.c
parentdfc50ac85e9d68a771b556297b7c411650206f3b (diff)
jvdec: Return EOF on end of file
Diffstat (limited to 'libavformat/jvdec.c')
-rw-r--r--libavformat/jvdec.c3
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);
}