nvenc: Remove unnecessary constraint from YUV420 10bits capability decision

YUV444 capability shouldn't be applied to YUV420 10 bits format
This commit is contained in:
Seungha Yang 2019-08-06 21:55:36 +09:00
parent 99af098a7b
commit fa5e6f546b

View file

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