Skip to content
Snippets Groups Projects
Commit 027712e8 authored by Luca Barbato's avatar Luca Barbato
Browse files

jvdec: Return EOF on end of file

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