Message ID | 20211112160629.7220-1-jamrial@gmail.com |
---|---|
State | Accepted |
Commit | 47451d9267caf8f989530d0d7a1311f6205a2c21 |
Headers | show |
Series | [FFmpeg-devel,1/2] avdevice/dshow: fix print format for some variables | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
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@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.
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;
WAVEFORMATEX.nChannels and WAVEFORMATEX.wBitsPerSample are of type WORD, aka unsigned short. Signed-off-by: James Almer <jamrial@gmail.com> --- libavdevice/dshow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)