diff mbox series

[FFmpeg-devel] qsv: Fix format specifiers for int variables

Message ID CAB0OVGoScZO6VAPEc81fTGF8n0q9WgCTUY3TJguyJsCuzfG9jw@mail.gmail.com
State Accepted
Headers show
Series [FFmpeg-devel] qsv: Fix format specifiers for int variables | expand

Checks

Context Check Description
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Carl Eugen Hoyos April 1, 2020, 2:55 p.m. UTC
Hi!

Attached patches fix three wrong format specifiers, the variables are
all of type int but the specifier PRId16 is used.

Please comment, Carl Eugen

Comments

Carl Eugen Hoyos April 3, 2020, 7:49 p.m. UTC | #1
Am Mi., 1. Apr. 2020 um 16:55 Uhr schrieb Carl Eugen Hoyos <ceffmpeg@gmail.com>:

> Attached patches fix three wrong format specifiers, the variables are
> all of type int but the specifier PRId16 is used.

Will push them tomorrow.

Carl Eugen
Carl Eugen Hoyos April 4, 2020, 9:19 p.m. UTC | #2
Am Fr., 3. Apr. 2020 um 21:49 Uhr schrieb Carl Eugen Hoyos <ceffmpeg@gmail.com>:
>
> Am Mi., 1. Apr. 2020 um 16:55 Uhr schrieb Carl Eugen Hoyos <ceffmpeg@gmail.com>:
>
> > Attached patches fix three wrong format specifiers, the variables are
> > all of type int but the specifier PRId16 is used.
>
> Will push them tomorrow.

Done.

Carl Eugen
diff mbox series

Patch

From e4413d70d35348d46542890270ce3e2019309ba2 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Wed, 1 Apr 2020 16:52:19 +0200
Subject: [PATCH] lavc/qsvenc: Fix format specifiers for two variables of type
 int.

---
 libavcodec/qsvenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 52b4e43979..afab8fd715 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -218,9 +218,9 @@  static void dump_video_param(AVCodecContext *avctx, QSVEncContext *q,
            "RecoveryPointSEI: %s IntRefType: %"PRIu16"; IntRefCycleSize: %"PRIu16"; IntRefQPDelta: %"PRId16"\n",
            print_threestate(co->RecoveryPointSEI), co2->IntRefType, co2->IntRefCycleSize, co2->IntRefQPDelta);
 
-    av_log(avctx, AV_LOG_VERBOSE, "MaxFrameSize: %"PRIu16"; ", co2->MaxFrameSize);
+    av_log(avctx, AV_LOG_VERBOSE, "MaxFrameSize: %d; ", co2->MaxFrameSize);
 #if QSV_HAVE_MAX_SLICE_SIZE
-    av_log(avctx, AV_LOG_VERBOSE, "MaxSliceSize: %"PRIu16"; ", co2->MaxSliceSize);
+    av_log(avctx, AV_LOG_VERBOSE, "MaxSliceSize: %d; ", co2->MaxSliceSize);
 #endif
     av_log(avctx, AV_LOG_VERBOSE, "\n");
 
-- 
2.24.1