1
0
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:
Martin Storsjö
2025-03-25 11:56:50 +02:00
parent e5a33c898a
commit d256118b7e

View File

@ -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,