[FFmpeg-devel] [PATCH] lavc/v4l2: Fix printf format for int64_t
Mark Thompson
sw at jkqxz.net
Thu Oct 5 03:07:48 EEST 2017
---
Not everyone has a 64-bit long, especially on arm.
libavcodec/v4l2_m2m_enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/v4l2_m2m_enc.c b/libavcodec/v4l2_m2m_enc.c
index b0d5a3bd15..f71ce5fb74 100644
--- a/libavcodec/v4l2_m2m_enc.c
+++ b/libavcodec/v4l2_m2m_enc.c
@@ -180,7 +180,7 @@ static int v4l2_prepare_encoder(V4L2m2mContext *s)
av_log(avctx, AV_LOG_DEBUG,
"Encoder Context: id (%d), profile (%d), frame rate(%d/%d), number b-frames (%d), "
- "gop size (%d), bit rate (%ld), qmin (%d), qmax (%d)\n",
+ "gop size (%d), bit rate (%"PRId64"), qmin (%d), qmax (%d)\n",
avctx->codec_id, avctx->profile, avctx->framerate.num, avctx->framerate.den,
avctx->max_b_frames, avctx->gop_size, avctx->bit_rate, avctx->qmin, avctx->qmax);
--
2.11.0
More information about the ffmpeg-devel
mailing list