From f04f6f43c3ca5b6fb59964d6dc866adbb65b82c0 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 27 Jul 2024 04:16:16 +0900 Subject: [PATCH] d3d12frame: Fix frame copy method Part-of: --- .../gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12frame.cpp b/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12frame.cpp index 21498e06b5..babe99705c 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12frame.cpp +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12frame.cpp @@ -369,7 +369,7 @@ gst_d3d12_frame_copy (GstD3D12Frame * dest, const GstD3D12Frame * src, GstD3D12CopyTextureRegionArgs args[GST_VIDEO_MAX_PLANES] = { }; D3D12_BOX src_box[GST_VIDEO_MAX_PLANES] = { }; - for (guint i = 0; GST_VIDEO_INFO_N_PLANES (&dest->info); i++) { + for (guint i = 0; i < GST_VIDEO_INFO_N_PLANES (&dest->info); i++) { gst_d3d12_frame_build_copy_args (dest, src, i, &args[i], &src_box[i]); args[i].src_box = &src_box[i]; }