summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-29 19:35:56 -0800
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2016-01-06 20:36:24 -0800
commit369b161d8e6d80aa2f4f4d52d8d47e0acd36cbc4 (patch)
tree173b3207dceff7994b124481e0669a88b5b55536 /ffmpeg.c
parent0869ff7e9d17cdcfbed65a8f25ce27002ec9b974 (diff)
downloadffmpeg-369b161d8e6d80aa2f4f4d52d8d47e0acd36cbc4.tar.gz
ffmpeg: replace log2 by av_log2
Slight change in output deemed irrelevant here. Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index dd853560ee..659bd7f3c1 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1560,7 +1560,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
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(log2(qp_histogram[j] + 1)));
+ snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%X", av_log2(qp_histogram[j] + 1));
}
if ((enc->flags & AV_CODEC_FLAG_PSNR) && (ost->pict_type != AV_PICTURE_TYPE_NONE || is_last_report)) {