fixing yuv422 -> yuv420p (i need that for the vceq videos ...)

Originally committed as revision 1481 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2003-01-20 20:33:08 +00:00
parent 2a743f633e
commit d0162d09d0

View File

@ -242,18 +242,18 @@ static void yuv422_to_yuv420p(AVPicture *dst, AVPicture *src,
for(y=0;y<height;y+=2) { for(y=0;y<height;y+=2) {
for(x=0;x<width;x+=2) { for(x=0;x<width;x+=2) {
lum[0] = p[0]; cb[0] = p[0];
cb[0] = p[1]; lum[0] = p[1];
lum[1] = p[2]; cr[0] = p[2];
cr[0] = p[3]; lum[1] = p[3];
p += 4; p += 4;
lum += 2; lum += 2;
cb++; cb++;
cr++; cr++;
} }
for(x=0;x<width;x+=2) { for(x=0;x<width;x+=2) {
lum[0] = p[0]; lum[0] = p[1];
lum[1] = p[2]; lum[1] = p[3];
p += 4; p += 4;
lum += 2; lum += 2;
} }