提交 cb13f448 编写于 作者: J James Almer

avcodec/dolby_e: use av_clip_uintp2()

Fixes fate-source.
上级 a17fcd8e
......@@ -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)];
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册