From 84f4068036c13929c70235a4f3d605e892c319b7 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 28 Apr 2024 23:34:37 +0900 Subject: [PATCH] nvh265encoder: Fix crash with RGBx and BGRx Both formats need to be handled in switch Part-of: --- subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265encoder.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;