mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/vlc: add correct upper limit for recursive function
This commit is contained in:
parent
ba9cd06c76
commit
fa20f5cd9e
|
@ -419,7 +419,7 @@ static int vlc_multi_gen(VLC_MULTI_ELEM *table, const VLC *single,
|
|||
}
|
||||
|
||||
add_level(table, nb_elems, nb_codes, numbits, buf,
|
||||
0, 0, numbits, 0, minbits, max, count, &info);
|
||||
0, 0, FFMIN(maxbits, numbits), 0, minbits, max, count, &info);
|
||||
|
||||
av_log(NULL, AV_LOG_DEBUG, "Joint: %d/%d/%d/%d/%d codes min=%ubits max=%u\n",
|
||||
count[0], count[1], count[2], count[3], count[4], minbits, max);
|
||||
|
|
Loading…
Reference in New Issue