jvdec: Return EOF on end of file
This commit is contained in:
parent
dfc50ac85e
commit
027712e851
@ -184,6 +184,9 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
}
|
||||
}
|
||||
|
||||
if (s->pb->eof_reached)
|
||||
return AVERROR_EOF;
|
||||
|
||||
return AVERROR(EIO);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user