Commit cb13f448 authored by James Almer's avatar James Almer

avcodec/dolby_e: use av_clip_uintp2()

Fixes fate-source.
parent a17fcd8e
...@@ -266,7 +266,7 @@ static void bit_allocate(int nb_exponent, int nb_code, int fr_code, ...@@ -266,7 +266,7 @@ static void bit_allocate(int nb_exponent, int nb_code, int fr_code,
for (i = 0; i < nb_exponent; i++) { for (i = 0; i < nb_exponent; i++) {
int v = 16 * (snr_ofs - 64) + psd_val[i] - msk_val[i] >> 5; 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)];
} }
} }
......
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