summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2024-04-28 23:34:37 +0900
committerSeungha Yang <seungha@centricular.com>2024-04-28 23:34:37 +0900
commit84f4068036c13929c70235a4f3d605e892c319b7 (patch)
treefdafcf00e2d8db049dc2e07d7f1fb988f422a880
parent46131f0cb022202fd4411aebdb8aa26c85ca93c3 (diff)
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>
-rw-r--r--subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265encoder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265encoder.cpp b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265encoder.cpp
index fdb8e2c708..edf8154c8b 100644
--- a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265encoder.cpp
+++ b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265encoder.cpp
@@ -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;