diff options
author | Martin Storsjö <martin@martin.st> | 2025-03-25 11:56:50 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2025-03-26 22:33:16 +0200 |
commit | d256118b7e622c07167bbe044daba05c2326a6e3 (patch) | |
tree | 3f37980113eb801a6a9c268fcb3d1eeb24cf59a7 | |
parent | e5a33c898a3c82957d6e4b02b2bbaf2bb0c28165 (diff) | |
download | ffmpeg-d256118b7e622c07167bbe044daba05c2326a6e3.tar.gz |
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 c6214b0d691566c7cb0f2ff5be08a24c3534e5bb.
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavcodec/videotoolbox.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c index aaa6129576..a744657957 100644 --- a/libavcodec/videotoolbox.c +++ b/libavcodec/videotoolbox.c @@ -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, |