aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYogender Gupta <ygupta@nvidia.com>2016-10-06 09:10:25 +0000
committerLuca Barbato <lu_zero@gentoo.org>2016-10-07 10:41:38 +0200
commitda2848375a2e2121dad9f1e8cbd0ead4e3bf77d6 (patch)
tree37b7e6e9461402ce3e3f815ef22f82ec650d3a74
parente4128c08d786eb5513578e8c6063671ba03226ab (diff)
downloadffmpeg-da2848375a2e2121dad9f1e8cbd0ead4e3bf77d6.tar.gz
nvenc: Force high_444 profile for 444 input
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r--libavcodec/nvenc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 0b6e4cef86..9c35bd0d25 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -723,6 +723,11 @@ static int nvenc_setup_h264_config(AVCodecContext *avctx)
break;
}
+ if (ctx->data_pix_fmt == AV_PIX_FMT_YUV444P) {
+ cc->profileGUID = NV_ENC_H264_PROFILE_HIGH_444_GUID;
+ avctx->profile = FF_PROFILE_H264_HIGH_444_PREDICTIVE;
+ }
+
h264->level = ctx->level;
return 0;