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:
parent
adc0f0cca6
commit
4b2cf53a55
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user