lavf/rmdec: Do not return EIO on EOF.

Reported-by: applemax82
This commit is contained in:
Carl Eugen Hoyos 2016-08-02 16:16:31 +02:00
parent 3d7ea1d39e
commit 8ee113afa1
1 changed files with 3 additions and 1 deletions

View File

@ -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,