Browse Source

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>
tags/n4.2
Limin Wang Rick Kern 6 years ago
parent
commit
268ab17c51
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/videotoolboxenc.c

+ 5
- 0
libavcodec/videotoolboxenc.c 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,


Loading…
Cancel
Save