aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2024-09-09 12:58:37 +0200
committerRamiro Polla <ramiro.polla@gmail.com>2024-10-17 13:04:17 +0200
commitd2ed52dc02926f8d4d7baf819fa40c3d6d790730 (patch)
tree21f0e427ce335ea95fd2a1560439189f170edca1
parentc03421308337cc989ef1fad5ad630526c90b024c (diff)
downloadffmpeg-d2ed52dc02926f8d4d7baf819fa40c3d6d790730.tar.gz
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.
-rw-r--r--libavdevice/dshow.c2
1 files changed, 1 insertions, 1 deletions
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)) {