qsvdecoder: Fix system memory alignment
authorSeungha Yang <seungha@centricular.com>
Thu, 23 Jun 2022 12:35:23 +0000 (21:35 +0900)
committerSeungha Yang <seungha@centricular.com>
Thu, 23 Jun 2022 12:43:25 +0000 (21:43 +0900)
Do right padding, not left

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2651>

subprojects/gst-plugins-bad/sys/qsv/gstqsvdecoder.cpp

index eb4e041..a98f9dc 100644 (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 */