libavcodec/videotoolboxenc: Fix compilation broken on macOS 10.12
authorLimin Wang <lance.lmwang@gmail.com>
Fri, 7 Jun 2019 15:13:26 +0000 (23:13 +0800)
committerRick Kern <rick@8birdsvideo.com>
Tue, 18 Jun 2019 02:54:04 +0000 (22:54 -0400)
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Rick Kern <kernrj@gmail.com>
libavcodec/videotoolboxenc.c

index 3665581..f8ccdea 100644 (file)
 enum { kCMVideoCodecType_HEVC = 'hvc1' };
 #endif
 
+#if !HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE
+enum { kCVPixelFormatType_420YpCbCr10BiPlanarFullRange = 'xf20' };
+enum { kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange = 'x420' };
+#endif
+
 typedef OSStatus (*getParameterSetAtIndex)(CMFormatDescriptionRef videoDesc,
                                            size_t parameterSetIndex,
                                            const uint8_t **parameterSetPointerOut,