From fa5e6f546b61ddfa466217c79a5a4be99eb45735 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 6 Aug 2019 21:55:36 +0900 Subject: [PATCH] nvenc: Remove unnecessary constraint from YUV420 10bits capability decision YUV444 capability shouldn't be applied to YUV420 10 bits format --- sys/nvcodec/gstnvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nvcodec/gstnvenc.c b/sys/nvcodec/gstnvenc.c index b1132c0fc7..32d4b65a7f 100644 --- a/sys/nvcodec/gstnvenc.c +++ b/sys/nvcodec/gstnvenc.c @@ -387,7 +387,7 @@ gst_nv_enc_get_supported_input_formats (gpointer encoder, GUID codec_id, } break; case NV_ENC_BUFFER_FORMAT_YUV420_10BIT: - if (support_yuv444 && support_10bit && !format_map[i].supported) { + if (support_10bit && !format_map[i].supported) { format_map[i].supported = TRUE; num_format++; }