mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
nvenc: Fix broken RGB format support
Add missing format check introduced by the commit 7de4dbdeb2
This commit is contained in:
parent
bc4c221be3
commit
cc4d0e91e3
1 changed files with 6 additions and 0 deletions
|
@ -492,6 +492,10 @@ gst_nv_base_enc_set_filtered_input_formats (GstNvBaseEnc * nvenc,
|
|||
case GST_VIDEO_FORMAT_YV12:
|
||||
case GST_VIDEO_FORMAT_I420:
|
||||
/* 8bits 4:2:0 formats are always supported */
|
||||
case GST_VIDEO_FORMAT_BGRA:
|
||||
case GST_VIDEO_FORMAT_RGBA:
|
||||
/* NOTE: RGB formats seems to also supported format, which are
|
||||
* encoded to 4:2:0 formats */
|
||||
gst_value_list_append_value (&supported_format, val);
|
||||
last_format = val;
|
||||
num_format++;
|
||||
|
@ -505,6 +509,8 @@ gst_nv_base_enc_set_filtered_input_formats (GstNvBaseEnc * nvenc,
|
|||
break;
|
||||
case GST_VIDEO_FORMAT_P010_10LE:
|
||||
case GST_VIDEO_FORMAT_P010_10BE:
|
||||
case GST_VIDEO_FORMAT_BGR10A2_LE:
|
||||
case GST_VIDEO_FORMAT_RGB10A2_LE:
|
||||
if (max_bit_minus8 >= 2) {
|
||||
gst_value_list_append_value (&supported_format, val);
|
||||
last_format = val;
|
||||
|
|
Loading…
Reference in a new issue