summaryrefslogtreecommitdiff
path: root/libavcodec/libx265.c
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2017-12-18 06:18:57 -0600
committerRodger Combs <rodger.combs@gmail.com>2018-01-12 18:33:58 -0600
commit1eb7c1d49d67fe0f21c71fb87d6c1fa8542f8cef (patch)
tree9f6b6ee36fd2ae08537af9fd05d5615b37e96995 /libavcodec/libx265.c
parent0c31a3876d9a522add43ab62a9bcd3d857b28436 (diff)
downloadffmpeg-1eb7c1d49d67fe0f21c71fb87d6c1fa8542f8cef.tar.gz
lavc/libx265: support all color parameters that x265 does
Diffstat (limited to 'libavcodec/libx265.c')
-rw-r--r--libavcodec/libx265.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index 52ad2312a3..3c97800ccb 100644
--- a/libavcodec/libx265.c
+++ b/libavcodec/libx265.c
@@ -115,11 +115,11 @@ static av_cold int libx265_encode_init(AVCodecContext *avctx)
ctx->params->sourceHeight = avctx->height;
ctx->params->bEnablePsnr = !!(avctx->flags & AV_CODEC_FLAG_PSNR);
- if ((avctx->color_primaries <= AVCOL_PRI_BT2020 &&
+ if ((avctx->color_primaries <= AVCOL_PRI_SMPTE432 &&
avctx->color_primaries != AVCOL_PRI_UNSPECIFIED) ||
- (avctx->color_trc <= AVCOL_TRC_BT2020_12 &&
+ (avctx->color_trc <= AVCOL_TRC_ARIB_STD_B67 &&
avctx->color_trc != AVCOL_TRC_UNSPECIFIED) ||
- (avctx->colorspace <= AVCOL_SPC_BT2020_CL &&
+ (avctx->colorspace <= AVCOL_SPC_ICTCP &&
avctx->colorspace != AVCOL_SPC_UNSPECIFIED)) {
ctx->params->vui.bEnableVideoSignalTypePresentFlag = 1;