Unified · Split
| @@ -419,7 +419,7 @@ static int vlc_multi_gen(VLC_MULTI_ELEM *table, const VLC *single, · 418 unmodified lines | |||
| 419 | } | 419 | } |
| 420 | 420 | ||
| 421 | add_level(table, nb_elems, nb_codes, numbits, buf, | 421 | add_level(table, nb_elems, nb_codes, numbits, buf, |
| 422 | 0, 0, numbits, 0, minbits, max, count, &info); | 422 | 0, 0, FFMIN(maxbits, numbits), 0, minbits, max, count, &info); |
| 423 | 423 | ||
| 424 | av_log(NULL, AV_LOG_DEBUG, "Joint: %d/%d/%d/%d/%d codes min=%ubits max=%u\n", | 424 | av_log(NULL, AV_LOG_DEBUG, "Joint: %d/%d/%d/%d/%d codes min=%ubits max=%u\n", |
| 425 | count[0], count[1], count[2], count[3], count[4], minbits, max); | 425 | count[0], count[1], count[2], count[3], count[4], minbits, max); |