qsvdecoder: Fix system memory alignment

Do right padding, not left

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2651>
This commit is contained in:
Seungha Yang 2022-06-23 21:35:23 +09:00
parent 513a1cbbb3
commit abd60b6b1e

View file

@ -938,7 +938,7 @@ gst_qsv_decoder_prepare_pool (GstQsvDecoder * self, mfxU16 * io_pattern)
}
gst_video_alignment_reset (&align);
align.padding_left = priv->aligned_info.width - priv->info.width;
align.padding_right = priv->aligned_info.width - priv->info.width;
align.padding_bottom = priv->aligned_info.height - priv->info.height;
/* TODO: Add Linux video memory (VA/DMABuf) support */