lavf/rmdec: Do not return EIO on EOF.
Reported-by: applemax82
This commit is contained in:
parent
3d7ea1d39e
commit
8ee113afa1
@ -1044,7 +1044,9 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
st = s->streams[i];
|
||||
}
|
||||
|
||||
if (len <= 0 || avio_feof(s->pb))
|
||||
if (avio_feof(s->pb))
|
||||
return AVERROR_EOF;
|
||||
if (len <= 0)
|
||||
return AVERROR(EIO);
|
||||
|
||||
res = ff_rm_parse_packet (s, s->pb, st, st->priv_data, len, pkt,
|
||||
|
Loading…
Reference in New Issue
Block a user