diff options
author | Yogender Gupta <ygupta@nvidia.com> | 2016-10-06 09:10:25 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2016-10-07 10:41:38 +0200 |
commit | da2848375a2e2121dad9f1e8cbd0ead4e3bf77d6 (patch) | |
tree | 37b7e6e9461402ce3e3f815ef22f82ec650d3a74 | |
parent | e4128c08d786eb5513578e8c6063671ba03226ab (diff) | |
download | ffmpeg-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.c | 5 |
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; |