mirror of https://git.ffmpeg.org/ffmpeg.git
nvenc: Force high_444 profile for 444 input
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
e4128c08d7
commit
da2848375a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue