Skip to content

msdk: Do not update mfx surface info from mfxVideoParam at decoder

Mengkejiergeli Ba requested to merge mkba/gstreamer:surface_info into main

For decoder, mfx work_surface info should be set using surface allocation info instead of mfxVideoParam passing to decoder at initialization, because input info could be different from output, for example, input bitstream is P010, while raw output data is BGRA.

Function gst_msdk_update_mfx_frame_info_from_mfx_video_param sets bitdepth and shift of surface using mfxVideoParam, which is incorrect for the example mention before, so remove this. Funtion gst_msdk_set_mfx_frame_info_from_video_info should be enough to fill surface info using allocator info.

Merge request reports