From 513a1cbbb360b5b311303a313b7483552d479de5 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 23 Jun 2022 21:41:24 +0900 Subject: [PATCH] d3d11decoder: Fix texture download Stride applied to src/dst was reversed Part-of: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp index 3821b5976a..3826d2586b 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp @@ -1501,8 +1501,8 @@ gst_d3d11_decoder_crop_and_copy_buffer (GstD3D11Decoder * self, for (gint j = 0; j < height; j++) { memcpy (dst_data, src_data, width_in_bytes); - dst_data += d3d11_map.RowPitch; - src_data += stride; + dst_data += stride; + src_data += d3d11_map.RowPitch; } }