You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
videotoolbox: Fix building with older SDKs
The kVTVideoDecoderReferenceMissingErr constant was only added
in the macOS 12 and iOS 15 SDKs. Use a hardcoded value instead
of the named constant, to fix building with older SDKs
after c6214b0d69
.
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@ -728,7 +728,8 @@ static void videotoolbox_decoder_callback(void *opaque,
|
||||
}
|
||||
|
||||
if (!image_buffer) {
|
||||
if (status != kVTVideoDecoderReferenceMissingErr)
|
||||
// kVTVideoDecoderReferenceMissingErr, defined since the macOS 12 SDKs
|
||||
if (status != -17694)
|
||||
vtctx->reconfig_needed = true;
|
||||
|
||||
av_log(vtctx->logctx, status ? AV_LOG_WARNING : AV_LOG_DEBUG,
|
||||
|
Reference in New Issue
Block a user