diff options
author | James Almer <jamrial@gmail.com> | 2017-07-19 21:19:59 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-07-19 21:19:59 +0300 |
commit | cb13f4483183fc280857dcba22049ded047184d1 (patch) | |
tree | 9cc4b9b71bf0740da5edd91fc2c6f1bc27e88487 /libavcodec/dolby_e.c | |
parent | a17fcd8e04733cb3f2d9785e54337960e06b41c8 (diff) |
avcodec/dolby_e: use av_clip_uintp2()
Fixes fate-source.
Diffstat (limited to 'libavcodec/dolby_e.c')
-rw-r--r-- | libavcodec/dolby_e.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dolby_e.c b/libavcodec/dolby_e.c index 63187e9977..6f390d959f 100644 --- a/libavcodec/dolby_e.c +++ b/libavcodec/dolby_e.c @@ -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)]; } } |