Skip to content
Snippets Groups Projects
Commit cb13f448 authored by James Almer's avatar James Almer
Browse files

avcodec/dolby_e: use av_clip_uintp2()

Fixes fate-source.
parent a17fcd8e
No related branches found
No related tags found
No related merge requests found
......@@ -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)];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment