lavf/rmdec: Do not return EIO on EOF.

Reported-by: applemax82
pull/228/head
Carl Eugen Hoyos 9 years ago
parent 3d7ea1d39e
commit 8ee113afa1
  1. 4
      libavformat/rmdec.c

@ -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…
Cancel
Save