aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-10-20 14:11:16 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-10-21 14:37:48 +0100
commitbe42c0b8d57fe2ea769892d102ffd5561dc18709 (patch)
tree7e68948ac13d15f020e8b6cc1de8569cc1003dfd
parent7207dd8f829baee58b4df6c97c19ffde77039e8d (diff)
downloadffmpeg-be42c0b8d57fe2ea769892d102ffd5561dc18709.tar.gz
rmdec: stricter error check to avoid theoretical unitialized use
CC: libav-stable@libav.org Bug-Id: CID 90558
-rw-r--r--libavformat/rmdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 40cc35781e..38fb1ec607 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -865,7 +865,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
st = s->streams[i];
}
- if(len<0 || s->pb->eof_reached)
+ if (len <= 0 || s->pb->eof_reached)
return AVERROR(EIO);
res = ff_rm_parse_packet (s, s->pb, st, st->priv_data, len, pkt,