[FFmpeg-cvslog] libavcodec/videotoolboxenc: Fix compilation broken on macOS 10.12

Limin Wang git at videolan.org
Tue Jun 18 05:54:46 EEST 2019


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Fri Jun  7 23:13:26 2019 +0800| [268ab17c519f4e34783956092c9edf3ef2c4e280] | committer: Rick Kern

libavcodec/videotoolboxenc: Fix compilation broken on macOS 10.12

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
Signed-off-by: Rick Kern <kernrj at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=268ab17c519f4e34783956092c9edf3ef2c4e280
---

 libavcodec/videotoolboxenc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index 3665581283..f8ccdea52d 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -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,



More information about the ffmpeg-cvslog mailing list