From e831e993257999f6539d453faadee7528e628520 Mon Sep 17 00:00:00 2001
From: chenjuncong <chenjuncong@allwinnertech.com>
Date: Tue, 15 Apr 2025 19:34:05 +0800
Subject: [PATCH] modify the offset method of data copy

Scope:
IssueID:
Relation:
Signed-off-by: chenjuncong <chenjuncong@allwinnertech.com>
---
 gst-libs/gst/video/video-frame.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gst-libs/gst/video/video-frame.c b/gst-libs/gst/video/video-frame.c
index 0b23989..a1a32ff 100644
--- a/gst-libs/gst/video/video-frame.c
+++ b/gst-libs/gst/video/video-frame.c
@@ -384,7 +384,7 @@ gst_video_frame_copy_plane (GstVideoFrame * dest, const GstVideoFrame * src,
     for (j = 0; j < h; j++) {
       memcpy (dp, sp, w);
       dp += ds;
-      sp += ss;
+      sp += ds;
     }
   }

--
2.25.1

