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 /avconv.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 'avconv.c')
-rw-r--r-- | avconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -820,7 +820,7 @@ static void print_report(int is_last_report, int64_t timer_start) if (qp >= 0 && qp < FF_ARRAY_ELEMS(qp_histogram)) qp_histogram[qp]++; for (j = 0; j < 32; j++) - snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%X", (int)lrintf(log(qp_histogram[j] + 1) / log(2))); + snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%X", (int)lrintf(log2(qp_histogram[j] + 1))); } if (enc->flags&CODEC_FLAG_PSNR) { int j; |