[FFmpeg-cvslog] ffmpeg: replace log2 by av_log2

Ganesh Ajjanagadde git at videolan.org
Thu Jan 7 05:40:19 CET 2016


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Tue Dec 29 19:35:56 2015 -0800| [369b161d8e6d80aa2f4f4d52d8d47e0acd36cbc4] | committer: Ganesh Ajjanagadde

ffmpeg: replace log2 by av_log2

Slight change in output deemed irrelevant here.

Reviewed-by: Hendrik Leppkes <h.leppkes at gmail.com>
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=369b161d8e6d80aa2f4f4d52d8d47e0acd36cbc4
---

 ffmpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index dd85356..659bd7f 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)) {



More information about the ffmpeg-cvslog mailing list