diff options
author | Mans Rullgard <mans@mansr.com> | 2012-08-05 22:22:10 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-08-13 17:59:21 +0100 |
commit | d752509b7437beefac079021fc5ecbd4e27df6b5 (patch) | |
tree | eaec4c04ead1e7d2faf083c31f0055f627e979ac /libavcodec/snowenc.c | |
parent | 90540c2d5ace46a1e9789c75fde0b1f7dbb12a9b (diff) | |
download | ffmpeg-d752509b7437beefac079021fc5ecbd4e27df6b5.tar.gz |
Use log2(x) instead of log(x) / log(2)
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r-- | libavcodec/snowenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index 2eaf923540..481dc1a503 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -1529,7 +1529,7 @@ static void update_last_header_values(SnowContext *s){ } static int qscale2qlog(int qscale){ - return rint(QROOT*log(qscale / (float)FF_QP2LAMBDA)/log(2)) + return rint(QROOT*log2(qscale / (float)FF_QP2LAMBDA)) + 61*QROOT/8; ///< 64 > 60 } |