1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/dolby_e: use av_clip_uintp2()

Fixes fate-source.
This commit is contained in:
James Almer 2017-07-19 15:19:59 -03:00
parent a17fcd8e04
commit cb13f44831

View File

@ -266,7 +266,7 @@ static void bit_allocate(int nb_exponent, int nb_code, int fr_code,
for (i = 0; i < nb_exponent; i++) {
int v = 16 * (snr_ofs - 64) + psd_val[i] - msk_val[i] >> 5;
bap[i] = bap_tab[av_clip(v, 0, 63)];
bap[i] = bap_tab[av_clip_uintp2(v, 6)];
}
}