Commit 8ee113af authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/rmdec: Do not return EIO on EOF.

Reported-by: applemax82
parent 3d7ea1d3
......@@ -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,
......
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