提交 74af6ae0 编写于 作者: M Michael Niedermayer

avcodec/vp8: Check bitstream input in vp7_fade_frame() before time consuming operation

Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 09f0429b
......@@ -507,6 +507,9 @@ static int vp7_fade_frame(VP8Context *s, VP56RangeCoder *c)
int beta = (int8_t) vp8_rac_get_uint(c, 8);
int ret;
if (c->end <= c->buffer && c->bits >= 0)
return AVERROR_INVALIDDATA;
if (!s->keyframe && (alpha || beta)) {
int width = s->mb_width * 16;
int height = s->mb_height * 16;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册