diff options
author | Seungha Yang <seungha@centricular.com> | 2024-04-28 23:34:37 +0900 |
---|---|---|
committer | Seungha Yang <seungha@centricular.com> | 2024-04-28 23:34:37 +0900 |
commit | 84f4068036c13929c70235a4f3d605e892c319b7 (patch) | |
tree | fdafcf00e2d8db049dc2e07d7f1fb988f422a880 | |
parent | 46131f0cb022202fd4411aebdb8aa26c85ca93c3 (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.cpp | 2 |
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; |