Browse Source

refactor: Comply with Wundef

Don't try to read undefined macros.
reviewable/pr6551/r13
Anthony Bilinski 4 years ago
parent
commit
4b2cf53a55
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 4
      src/video/cameradevice.cpp

4
src/video/cameradevice.cpp

@ -114,7 +114,7 @@ CameraDevice* CameraDevice::open(QString devName, AVDictionary** options) @@ -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) @@ -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…
Cancel
Save