msdkmjpegdec: Fix ColorFormat for BGRx format

For msdkmjpegdec, the BGRx format is supported in src caps,
set the ColorFormat to MFX_JPEG_COLORFORMAT_RGB.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4489>
This commit is contained in:
Yinhang Liu 2023-04-25 16:03:08 +08:00 committed by GStreamer Marge Bot
parent 3883ae8c2a
commit c5748c2051

View file

@ -917,6 +917,7 @@ _jpegdec_set_color_format (mfxVideoParam * param, GstVideoFormat format)
param->mfx.JPEGColorFormat = MFX_JPEG_COLORFORMAT_YCbCr;
break;
case GST_VIDEO_FORMAT_BGRA:
case GST_VIDEO_FORMAT_BGRx:
param->mfx.JPEGColorFormat = MFX_JPEG_COLORFORMAT_RGB;
break;
default: