[FFmpeg-cvslog] avdevice/dshow: fix print format for some variables

James Almer git at videolan.org
Sat Nov 13 16:39:02 EET 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Nov 12 13:02:34 2021 -0300| [47451d9267caf8f989530d0d7a1311f6205a2c21] | committer: James Almer

avdevice/dshow: fix print format for some variables

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

Signed-off-by: James Almer <jamrial at gmail.com>

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

 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;



More information about the ffmpeg-cvslog mailing list