diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-21 15:46:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-21 15:50:03 +0100 |
commit | 114a2eb272077b68bc8e0f2ee8fd6fc85a8e07c2 (patch) | |
tree | d11ce3dc892c86e032185994f596cd7edbdf5f44 /libavcodec/cngenc.c | |
parent | d301a13427d970671258593ef14dc87f8e24555a (diff) | |
download | ffmpeg-114a2eb272077b68bc8e0f2ee8fd6fc85a8e07c2.tar.gz |
avcodec: Use av_clip_uintp2() where possible
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/cngenc.c')
-rw-r--r-- | libavcodec/cngenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cngenc.c b/libavcodec/cngenc.c index bf5f7bf54b..58918aa958 100644 --- a/libavcodec/cngenc.c +++ b/libavcodec/cngenc.c @@ -87,7 +87,7 @@ static int cng_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, energy /= frame->nb_samples; if (energy > 0) { double dbov = 10 * log10(energy / 1081109975); - qdbov = av_clip(-floor(dbov), 0, 127); + qdbov = av_clip_uintp2(-floor(dbov), 7); } else { qdbov = 127; } |