[FFmpeg-cvslog] jvdec: Return EOF on end of file

Luca Barbato git at videolan.org
Fri Dec 20 23:57:36 CET 2013


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Fri Dec 13 03:10:16 2013 +0100| [027712e851da4d124a842c9e2802f95d50582553] | committer: Luca Barbato

jvdec: Return EOF on end of file

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=027712e851da4d124a842c9e2802f95d50582553
---

 libavformat/jvdec.c |    3 +++
 1 file changed, 3 insertions(+)

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



More information about the ffmpeg-cvslog mailing list