Commit d149a1f4 authored by banan's avatar banan

Check that js_vlc_bits from the extradata is in a valid range.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7756 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 967159d6
......@@ -1245,6 +1245,10 @@ static int cook_decode_init(AVCodecContext *avctx)
av_log(avctx,AV_LOG_ERROR,"unknown amount of samples_per_channel = %d, report sample!\n",q->samples_per_channel);
return -1;
}
if ((q->js_vlc_bits > 6) || (q->js_vlc_bits < 0)) {
av_log(avctx,AV_LOG_ERROR,"q->js_vlc_bits = %d, only >= 0 and <= 6 allowed!\n",q->js_vlc_bits);
return -1;
}
#ifdef COOKDEBUG
dump_cook_context(q);
......
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