From 4b2cf53a55a4913a5968ecceeab98112940e4c4c Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Fri, 11 Mar 2022 02:34:55 -0800 Subject: [PATCH] refactor: Comply with Wundef Don't try to read undefined macros. --- src/video/cameradevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/cameradevice.cpp b/src/video/cameradevice.cpp index ba2379931..6b82253d8 100644 --- a/src/video/cameradevice.cpp +++ b/src/video/cameradevice.cpp @@ -114,7 +114,7 @@ CameraDevice* CameraDevice::open(QString devName, AVDictionary** options) } // Fix avformat_find_stream_info hanging on garbage input -#if FF_API_PROBESIZE_32 +#if defined FF_API_PROBESIZE_32 && FF_API_PROBESIZE_32 aduration = fctx->max_analyze_duration2 = 0; #else aduration = fctx->max_analyze_duration = 0; @@ -125,7 +125,7 @@ CameraDevice* CameraDevice::open(QString devName, AVDictionary** options) goto out; } -#if FF_API_PROBESIZE_32 +#if defined FF_API_PROBESIZE_32 && FF_API_PROBESIZE_32 fctx->max_analyze_duration2 = aduration; #else fctx->max_analyze_duration = aduration;