diff options
author | Nomis101 <Nomis101@web.de> | 2019-11-03 03:20:38 +0300 |
---|---|---|
committer | Rick Kern <rick@8birdsvideo.com> | 2019-11-18 00:30:15 +0300 |
commit | 5e0a3278bb7385f9fee158ccd69b07bf76a9e5df (patch) | |
tree | 60d6bc105ee882ba29e190c1333fa389a49a37be /libavcodec/videotoolboxenc.c | |
parent | 315a4496ea1690deb28b2de84032b2eb13019657 (diff) |
avcodec: Add more kCVImageBufferColorPrimaries to videotoolboxenc
Signed-off-by: Rick Kern <kernrj@gmail.com>
Diffstat (limited to 'libavcodec/videotoolboxenc.c')
-rw-r--r-- | libavcodec/videotoolboxenc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index 40a7f643e0..cc08cf6a50 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -894,6 +894,14 @@ static int get_cv_color_primaries(AVCodecContext *avctx, *primaries = NULL; break; + case AVCOL_PRI_BT470BG: + *primaries = kCVImageBufferColorPrimaries_EBU_3213; + break; + + case AVCOL_PRI_SMPTE170M: + *primaries = kCVImageBufferColorPrimaries_SMPTE_C; + break; + case AVCOL_PRI_BT709: *primaries = kCVImageBufferColorPrimaries_ITU_R_709_2; break; |