libavcodec/videotoolboxenc: Fix compilation broken on macOS 10.12

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Rick Kern <kernrj@gmail.com>
This commit is contained in:
Limin Wang 2019-06-07 23:13:26 +08:00 committed by Rick Kern
parent 756dd98120
commit 268ab17c51
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@
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,