Browse Source

nvenc: Force high_444 profile for 444 input

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n3.3
Yogender Gupta Luca Barbato 9 years ago
parent
commit
da2848375a
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/nvenc.c

+ 5
- 0
libavcodec/nvenc.c 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;


Loading…
Cancel
Save