mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
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:
parent
3883ae8c2a
commit
c5748c2051
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue