nvenc: Force high_444 profile for 444 input

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Yogender Gupta 2016-10-06 09:10:25 +00:00 committed by Luca Barbato
parent e4128c08d7
commit da2848375a
1 changed files with 5 additions and 0 deletions

View File

@ -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;