[FFmpeg-cvslog] vaapi_encode: Fix format specifier for bitrate logging

Mark Thompson git at videolan.org
Tue Nov 22 01:11:50 EET 2016


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Mon Nov 21 22:59:58 2016 +0000| [f242e0a0ff0d24caabc2f647ffc669c1c51fbcba] | committer: Mark Thompson

vaapi_encode: Fix format specifier for bitrate logging

Same as e0df56f25d09b14f5315799338be246806c46806.  This was accidentally
reintroduced while merging c8241e730f116f1c9cfc0b34110aa7f052e05332.

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

 libavcodec/vaapi_encode_h264.c | 2 +-
 libavcodec/vaapi_encode_h265.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c
index 4385344..69cc483 100644
--- a/libavcodec/vaapi_encode_h264.c
+++ b/libavcodec/vaapi_encode_h264.c
@@ -1130,7 +1130,7 @@ static av_cold int vaapi_encode_h264_configure(AVCodecContext *avctx)
         priv->fixed_qp_p   = 26;
         priv->fixed_qp_b   = 26;
 
-        av_log(avctx, AV_LOG_DEBUG, "Using constant-bitrate = %d bps.\n",
+        av_log(avctx, AV_LOG_DEBUG, "Using constant-bitrate = %"PRId64" bps.\n",
                avctx->bit_rate);
 
     } else {
diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c
index 48a1af8..c5589ed 100644
--- a/libavcodec/vaapi_encode_h265.c
+++ b/libavcodec/vaapi_encode_h265.c
@@ -1190,7 +1190,7 @@ static av_cold int vaapi_encode_h265_configure(AVCodecContext *avctx)
         priv->fixed_qp_p   = 30;
         priv->fixed_qp_b   = 30;
 
-        av_log(avctx, AV_LOG_DEBUG, "Using constant-bitrate = %d bps.\n",
+        av_log(avctx, AV_LOG_DEBUG, "Using constant-bitrate = %"PRId64" bps.\n",
                avctx->bit_rate);
 
     } else {



More information about the ffmpeg-cvslog mailing list