mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
msdkenc: fix vp9enc initialization fail
MediaSDK does not support to handle extbuff with id MFX_EXTBUFF_VIDEO_SIGNAL_INFO for mjpegenc and vp9enc. Hence, need to exclude mjpeg and vp9 when passing color properties to MediaSDK during msdkenc initialization. Fix issue: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/764 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1101>
This commit is contained in:
parent
1bf237e767
commit
40d559adcf
1 changed files with 6 additions and 4 deletions
|
@ -736,11 +736,13 @@ gst_msdkenc_init_encoder (GstMsdkEnc * thiz)
|
|||
}
|
||||
|
||||
/* If color properties are available from upstream, set it and pass to MediaSDK here.
|
||||
* MJPEG is excluded from color config below as it is different from other codecs in
|
||||
* mfxInfoMFX struct.
|
||||
* MJPEG and VP9 are excluded as MediaSDK does not support to handle video param
|
||||
* extbuff with buffer id equals to MFX_EXTBUFF_VIDEO_SIGNAL_INFO.
|
||||
*/
|
||||
if (thiz->param.mfx.CodecId != MFX_CODEC_JPEG && (info->colorimetry.primaries
|
||||
|| info->colorimetry.transfer || info->colorimetry.matrix)) {
|
||||
if (thiz->param.mfx.CodecId != MFX_CODEC_JPEG &&
|
||||
thiz->param.mfx.CodecId != MFX_CODEC_VP9 &&
|
||||
(info->colorimetry.primaries || info->colorimetry.transfer
|
||||
|| info->colorimetry.matrix)) {
|
||||
memset (&ext_vsi, 0, sizeof (ext_vsi));
|
||||
ext_vsi.Header.BufferId = MFX_EXTBUFF_VIDEO_SIGNAL_INFO;
|
||||
ext_vsi.Header.BufferSz = sizeof (ext_vsi);
|
||||
|
|
Loading…
Reference in a new issue