jvdec: Return EOF on end of file

This commit is contained in:
Luca Barbato 2013-12-13 03:10:16 +01:00
parent dfc50ac85e
commit 027712e851

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);
}