diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-08-02 16:16:31 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-08-02 16:16:31 +0200 |
commit | 8ee113afa13846c48685a03d4a1b99f4700fd07a (patch) | |
tree | ba2a5fd8a578c529064736e906fe77983b352920 /libavformat/rmdec.c | |
parent | 3d7ea1d39e09d22b88c056b16dd04d1c49940012 (diff) | |
download | ffmpeg-8ee113afa13846c48685a03d4a1b99f4700fd07a.tar.gz |
lavf/rmdec: Do not return EIO on EOF.
Reported-by: applemax82
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r-- | libavformat/rmdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 0d3b56f1b5..d1758628ad 100644 --- a/libavformat/rmdec.c +++ b/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, |