jvdec: Return EOF on end of file
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 13 Dec 2013 02:10:16 +0000 (03:10 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 20 Dec 2013 16:44:20 +0000 (17:44 +0100)
libavformat/jvdec.c

index cf9df8c..caf29a8 100644 (file)
@@ -184,6 +184,9 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
         }
     }
 
+    if (s->pb->eof_reached)
+        return AVERROR_EOF;
+
     return AVERROR(EIO);
 }