Message ID | 20210515215953.17487-1-zane@zanevaniperen.com |
---|---|
State | Accepted |
Commit | f9eb440e788c08c489bb1a6d24dbbe34f4597f1c |
Headers | show |
Series | [FFmpeg-devel,v2] avcodec/videotoolboxenc: #define TARGET_CPU_ARM64 to 0 if not provided by the SDK | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
On 16/5/21 7:59 am, Zane van Iperen wrote: > Fixes build failure on older SDKs without it. > > Fixes #9242 > > Signed-off-by: Zane van Iperen <zane@zanevaniperen.com> > --- > libavcodec/videotoolboxenc.c | 4 ++++ > 1 file changed, 4 insertions(+) > > NB: This is untested, I do not have a Mac to try it on. > Ping, will apply tomorrow if no objections. Can confirm that this fixes #9242.
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,
Fixes build failure on older SDKs without it. Fixes #9242 Signed-off-by: Zane van Iperen <zane@zanevaniperen.com> --- libavcodec/videotoolboxenc.c | 4 ++++ 1 file changed, 4 insertions(+) NB: This is untested, I do not have a Mac to try it on.