summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/jvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c
index 9235e51a99..175cd9f33b 100644
--- a/libavformat/jvdec.c
+++ b/libavformat/jvdec.c
@@ -139,7 +139,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
AVIOContext *pb = s->pb;
AVStream *ast = s->streams[0];
- while (!url_feof(s->pb) && jv->pts < ast->nb_index_entries) {
+ while (!s->pb->eof_reached && jv->pts < ast->nb_index_entries) {
const AVIndexEntry *e = ast->index_entries + jv->pts;
const JVFrame *jvf = jv->frames + jv->pts;