mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
d3d12frame: Fix frame copy method
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7243>
This commit is contained in:
parent
28a7adf4dd
commit
f04f6f43c3
1 changed files with 1 additions and 1 deletions
|
@ -369,7 +369,7 @@ gst_d3d12_frame_copy (GstD3D12Frame * dest, const GstD3D12Frame * src,
|
||||||
GstD3D12CopyTextureRegionArgs args[GST_VIDEO_MAX_PLANES] = { };
|
GstD3D12CopyTextureRegionArgs args[GST_VIDEO_MAX_PLANES] = { };
|
||||||
D3D12_BOX src_box[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]);
|
gst_d3d12_frame_build_copy_args (dest, src, i, &args[i], &src_box[i]);
|
||||||
args[i].src_box = &src_box[i];
|
args[i].src_box = &src_box[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue