[FFmpeg-cvslog] avdevice/dshow: fix unused variable warning
Ramiro Polla
git at videolan.org
Thu Oct 17 14:05:02 EEST 2024
ffmpeg | branch: master | Ramiro Polla <ramiro.polla at gmail.com> | Mon Sep 9 12:58:37 2024 +0200| [d2ed52dc02926f8d4d7baf819fa40c3d6d790730] | committer: Ramiro Polla
avdevice/dshow: fix unused variable warning
The acaps variable was used outside of the #if DSHOWDEBUG block with
a1c4929f, but it is no longer used outside of the block since f125c504.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d2ed52dc02926f8d4d7baf819fa40c3d6d790730
---
libavdevice/dshow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 84db151577..6e97304850 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -985,8 +985,8 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype,
}
} else {
WAVEFORMATEX *fx;
- AUDIO_STREAM_CONFIG_CAPS *acaps = caps;
#if DSHOWDEBUG
+ AUDIO_STREAM_CONFIG_CAPS *acaps = caps;
ff_print_AUDIO_STREAM_CONFIG_CAPS(acaps);
#endif
if (IsEqualGUID(&type->formattype, &FORMAT_WaveFormatEx)) {
More information about the ffmpeg-cvslog
mailing list