[vlc-commits] Copy: fix pitch size argument
Jean-Baptiste Kempf
git at videolan.org
Tue Nov 15 19:29:57 CET 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Nov 15 19:19:27 2016 +0100| [359d2b12ab7071603c857e1c3d455d0c10b412b0] | committer: Jean-Baptiste Kempf
Copy: fix pitch size argument
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=359d2b12ab7071603c857e1c3d455d0c10b412b0
---
modules/video_chroma/copy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_chroma/copy.c b/modules/video_chroma/copy.c
index 6ec6be5..444d47a 100644
--- a/modules/video_chroma/copy.c
+++ b/modules/video_chroma/copy.c
@@ -426,7 +426,7 @@ static void SplitPlanes(uint8_t *dstu, size_t dstu_pitch,
unsigned height)
{
for (unsigned y = 0; y < height; y++) {
- for (unsigned x = 0; x < src_pitch; x++) {
+ for (unsigned x = 0; x < src_pitch / 2; x++) {
dstu[x] = src[2*x+0];
dstv[x] = src[2*x+1];
}
More information about the vlc-commits
mailing list