[FFmpeg-devel] [PATCH] avutil/opt: Fix type specifier

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Sat Sep 21 12:15:42 EEST 2019


This bug has been introduced in 9e0a071e.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavutil/opt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/opt.c b/libavutil/opt.c
index 35dc9e153d..7c2649725f 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -1200,7 +1200,7 @@ static void opt_list(void *obj, void *av_log_obj, const char *unit,
                 break;
             case AV_OPT_TYPE_CONST:
                 if (parent_type == AV_OPT_TYPE_INT)
-                    av_log(av_log_obj, AV_LOG_INFO, "%-12d ", opt->default_val.i64);
+                    av_log(av_log_obj, AV_LOG_INFO, "%-12"PRId64" ", opt->default_val.i64);
                 else
                     av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "");
                 break;
-- 
2.20.1



More information about the ffmpeg-devel mailing list