mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
nvh265encoder: Fix crash with RGBx and BGRx
Both formats need to be handled in switch Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6752>
This commit is contained in:
parent
46131f0cb0
commit
84f4068036
1 changed files with 2 additions and 0 deletions
|
@ -1163,7 +1163,9 @@ gst_nv_h265_encoder_set_format (GstNvEncoder * encoder,
|
|||
case GST_VIDEO_FORMAT_NV12:
|
||||
case GST_VIDEO_FORMAT_VUYA:
|
||||
case GST_VIDEO_FORMAT_RGBA:
|
||||
case GST_VIDEO_FORMAT_RGBx:
|
||||
case GST_VIDEO_FORMAT_BGRA:
|
||||
case GST_VIDEO_FORMAT_BGRx:
|
||||
if (downstream_profiles.find ("main") == downstream_profiles.end ()) {
|
||||
GST_ERROR_OBJECT (self, "Downstream does not support main profile");
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue