Browse Source

rmdec: stricter error check to avoid theoretical unitialized use

CC: libav-stable@libav.org
Bug-Id: CID 90558
tags/n2.5
Vittorio Giovara 11 years ago
parent
commit
be42c0b8d5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rmdec.c

+ 1
- 1
libavformat/rmdec.c View File

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


Loading…
Cancel
Save