projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rmdec: stricter error check to avoid theoretical unitialized use
[ffmpeg.git]
/
libavformat
/
rmdec.c
diff --git
a/libavformat/rmdec.c
b/libavformat/rmdec.c
index
40cc357
..
38fb1ec
100644
(file)
--- 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,