1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor: Comply with Wundef

Don't try to read undefined macros.
This commit is contained in:
Anthony Bilinski 2022-03-11 02:34:55 -08:00
parent adc0f0cca6
commit 4b2cf53a55
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -114,7 +114,7 @@ CameraDevice* CameraDevice::open(QString devName, AVDictionary** options)
} }
// Fix avformat_find_stream_info hanging on garbage input // 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; aduration = fctx->max_analyze_duration2 = 0;
#else #else
aduration = fctx->max_analyze_duration = 0; aduration = fctx->max_analyze_duration = 0;
@ -125,7 +125,7 @@ CameraDevice* CameraDevice::open(QString devName, AVDictionary** options)
goto out; goto out;
} }
#if FF_API_PROBESIZE_32 #if defined FF_API_PROBESIZE_32 && FF_API_PROBESIZE_32
fctx->max_analyze_duration2 = aduration; fctx->max_analyze_duration2 = aduration;
#else #else
fctx->max_analyze_duration = aduration; fctx->max_analyze_duration = aduration;