From 862848bc364ebd9898f3cbf96ad48ec6961f7d93 Mon Sep 17 00:00:00 2001 From: Sejun Park Date: Tue, 28 Nov 2017 14:38:19 +0900 Subject: [PATCH] fixed svace issues Change-Id: I3749d039a5c2594e41d656b255a82babf3bbe1f4 --- packaging/gst-plugins-video-dec.spec | 2 +- src/decoder.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/gst-plugins-video-dec.spec b/packaging/gst-plugins-video-dec.spec index 47419fa..0026ee6 100644 --- a/packaging/gst-plugins-video-dec.spec +++ b/packaging/gst-plugins-video-dec.spec @@ -1,6 +1,6 @@ Name: gst-plugins-video-dec Version: 1.0.3 -Release: 2 +Release: 3 License: LGPLv2+ Summary: nexell video decoder gstreamer plugin Group: Development/Libraries diff --git a/src/decoder.c b/src/decoder.c index 2a7a95c..0cde942 100644 --- a/src/decoder.c +++ b/src/decoder.c @@ -445,12 +445,12 @@ CopyImageToBufferYV12 (uint8_t * pSrcY, uint8_t * pSrcU, uint8_t * pSrcV, } else { for (i = 0; i < height; i++) { memcpy (pDst, pSrcU, width); - pSrcY += strideY; + pSrcU += strideUV; pDst += width; } for (i = 0; i < height; i++) { memcpy (pDst, pSrcV, width); - pSrcY += strideY; + pSrcV += strideUV; pDst += width; } } -- 2.34.1