Commit 21d8c661 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/smacker: Check init_get_bits8() for failure

Fixes: CID1322314
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 6ae1a32d
......@@ -316,7 +316,9 @@ static int decode_header_trees(SmackVContext *smk) {
full_size = AV_RL32(smk->avctx->extradata + 8);
type_size = AV_RL32(smk->avctx->extradata + 12);
init_get_bits8(&gb, smk->avctx->extradata + 16, smk->avctx->extradata_size - 16);
ret = init_get_bits8(&gb, smk->avctx->extradata + 16, smk->avctx->extradata_size - 16);
if (ret < 0)
return ret;
if(!get_bits1(&gb)) {
av_log(smk->avctx, AV_LOG_INFO, "Skipping MMAP tree\n");
......
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