Commit da284837 authored by Yogender Gupta's avatar Yogender Gupta Committed by Luca Barbato

nvenc: Force high_444 profile for 444 input

Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent e4128c08
...@@ -723,6 +723,11 @@ static int nvenc_setup_h264_config(AVCodecContext *avctx) ...@@ -723,6 +723,11 @@ static int nvenc_setup_h264_config(AVCodecContext *avctx)
break; 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; h264->level = ctx->level;
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment