On 11/12/2021 1:06 PM, James Almer wrote:
WAVEFORMATEX.nChannels and WAVEFORMATEX.wBitsPerSample are of type WORD, aka
unsigned short.

Signed-off-by: James Almer <[email protected]>
---
  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;


Will apply set.
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to