[FFmpeg-cvslog] avdevice/dshow: fix a unused variable warning

James Almer git at videolan.org
Sat Nov 13 16:39:04 EET 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Nov 12 13:03:58 2021 -0300| [b664df3ff47ab23a59bc5232249251f66f7115f9] | committer: James Almer

avdevice/dshow: fix a unused variable warning

Unused if DSHOWDEBUG is not set since commit
d9a9b4c877b85fea5a5bad74c3d592a756047f79.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b664df3ff47ab23a59bc5232249251f66f7115f9
---

 libavdevice/dshow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index fd62d79443..ef78781865 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -411,9 +411,9 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype,
                 bih->biHeight = ctx->requested_height;
             }
         } else {
-            AUDIO_STREAM_CONFIG_CAPS *acaps = caps;
             WAVEFORMATEX *fx;
 #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