[FFmpeg-devel] [PATCH 1/2] avdevice/dshow: fix print format for some variables
James Almer
jamrial at gmail.com
Sat Nov 13 16:33:09 EET 2021
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 <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;
>
Will apply set.
More information about the ffmpeg-devel
mailing list