jvdec: Return EOF on end of file

This commit is contained in:
Luca Barbato
2013-12-20 17:44:20 +01:00
parent dfc50ac85e
commit 027712e851
+3
View File
@@ -184,6 +184,9 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
}
}
if (s->pb->eof_reached)
return AVERROR_EOF;
return AVERROR(EIO);
}