[FFmpeg-devel] [PATCH 1/2] avdevice/dshow: fix print format for some variables

James Almer jamrial at gmail.com
Fri Nov 12 18:06:28 EET 2021


WAVEFORMATEX.nChannels and WAVEFORMATEX.wBitsPerSample are of type WORD, aka
unsigned short.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavdevice/dshow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index e313c9a2bf..fd62d79443 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -425,7 +425,7 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype,
                 av_log(
                     avctx,
                     AV_LOG_INFO,
-                    "  ch=%2lu, bits=%2lu, rate=%6lu\n",
+                    "  ch=%2u, bits=%2u, rate=%6lu\n",
                     fx->nChannels, fx->wBitsPerSample, fx->nSamplesPerSec
                 );
                 continue;
-- 
2.33.0



More information about the ffmpeg-devel mailing list