Commit 979062fe authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'be42c0b8'

* commit 'be42c0b8':
  rmdec: stricter error check to avoid theoretical unitialized use

Conflicts:
	libavformat/rmdec.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 840bc8e2 be42c0b8
......@@ -969,7 +969,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
st = s->streams[i];
}
if(len<0 || avio_feof(s->pb))
if (len <= 0 || avio_feof(s->pb))
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