Commit 027712e8 authored by Luca Barbato's avatar Luca Barbato

jvdec: Return EOF on end of file

parent dfc50ac8
......@@ -184,6 +184,9 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
}
}
if (s->pb->eof_reached)
return AVERROR_EOF;
return AVERROR(EIO);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment