diff options
author | Zane van Iperen <zane@zanevaniperen.com> | 2021-05-15 19:33:52 +1000 |
---|---|---|
committer | Zane van Iperen <zane@zanevaniperen.com> | 2021-05-19 10:37:51 +1000 |
commit | f9eb440e788c08c489bb1a6d24dbbe34f4597f1c (patch) | |
tree | 4a1c367b623845663eec4af7135dc06166bcd2d6 | |
parent | 3e44bd068fc19baeaab3295fce8379c68e4b2b2a (diff) | |
download | ffmpeg-f9eb440e788c08c489bb1a6d24dbbe34f4597f1c.tar.gz |
avcodec/videotoolboxenc: #define TARGET_CPU_ARM64 to 0 if not provided by the SDK
Fixes build failure on older SDKs without it.
Fixes #9242
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
-rw-r--r-- | libavcodec/videotoolboxenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index 58239e0ab9..f063a86e73 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -50,6 +50,10 @@ enum { kCVPixelFormatType_420YpCbCr10BiPlanarFullRange = 'xf20' }; enum { kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange = 'x420' }; #endif +#ifndef TARGET_CPU_ARM64 +# define TARGET_CPU_ARM64 0 +#endif + typedef OSStatus (*getParameterSetAtIndex)(CMFormatDescriptionRef videoDesc, size_t parameterSetIndex, const uint8_t **parameterSetPointerOut, |