Commit 359d2b12 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Copy: fix pitch size argument

parent 2a70d841
...@@ -426,7 +426,7 @@ static void SplitPlanes(uint8_t *dstu, size_t dstu_pitch, ...@@ -426,7 +426,7 @@ static void SplitPlanes(uint8_t *dstu, size_t dstu_pitch,
unsigned height) unsigned height)
{ {
for (unsigned y = 0; y < height; y++) { 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]; dstu[x] = src[2*x+0];
dstv[x] = src[2*x+1]; dstv[x] = src[2*x+1];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment