cog: Fix off-by-one in 444->420 conversion

Fixes #613160.
This commit is contained in:
David Schleef 2010-03-17 11:30:34 -07:00
parent 20c1e3b605
commit 88e8ec2e7e

View file

@ -1627,7 +1627,7 @@ convert_444_420_mpeg2 (CogFrame * frame, void *_dest, int component, int i)
int j;
int x;
for (j = 1; j < frame->components[component].width - 1; j++) {
for (j = 1; j < frame->components[component].width; j++) {
x = 1 * src1[j * 2 - 1];
x += 2 * src1[j * 2 + 0];
x += 1 * src1[j * 2 + 1];