Module: libav
Branch: master
Commit: da2848375a2e2121dad9f1e8cbd0ead4e3bf77d6

Author:    Yogender Gupta <ygu...@nvidia.com>
Committer: Luca Barbato <lu_z...@gentoo.org>
Date:      Thu Oct  6 09:10:25 2016 +0000

nvenc: Force high_444 profile for 444 input

Signed-off-by: Luca Barbato <lu_z...@gentoo.org>

---

 libavcodec/nvenc.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 0b6e4ce..9c35bd0 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;

_______________________________________________
libav-commits mailing list
libav-commits@libav.org
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to