X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg.c;h=b97ad7bdbfe9ddbef36b6aff0c9d5f50656cf56f;hb=7427d1ca4ab202def24fc3cefc4401a351d7248c;hp=043f68cb52ec568cd2fd116e54bd1d2df647e047;hpb=0e05908c954ff64ef2fcb2a97ed083bc285282c1;p=ffmpeg diff --git a/ffmpeg.c b/ffmpeg.c index 043f68cb52e..b97ad7bdbfe 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1120,7 +1120,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(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;