Commit 418be7ce authored by Paul B Mahol's avatar Paul B Mahol

avcodec/mss4: check return value of init_get_bits8()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent e87e2061
......@@ -572,7 +572,8 @@ static int mss4_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
ff_mss34_gen_quant_mat(c->quant_mat[i], quality, !i);
}
init_get_bits8(&gb, buf + HEADER_SIZE, (buf_size - HEADER_SIZE));
if ((ret = init_get_bits8(&gb, buf + HEADER_SIZE, buf_size - HEADER_SIZE)) < 0)
return ret;
mb_width = FFALIGN(width, 16) >> 4;
mb_height = FFALIGN(height, 16) >> 4;
......
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