avcodec/vlc: add correct upper limit for recursive function

This commit is contained in:
Paul B Mahol 2023-09-17 10:29:34 +02:00
parent ba9cd06c76
commit fa20f5cd9e
1 changed files with 1 additions and 1 deletions

View File

@ -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);