summaryrefslogtreecommitdiff
path: root/libavcodec/imgconvert.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-01-20 20:33:08 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-01-20 20:33:08 +0000
commitd0162d09d0ab0f5d6e7ed2834367cccefce69738 (patch)
tree76d5ffa750722fbe4372abfdb04ae7a9af71c8c7 /libavcodec/imgconvert.c
parent2a743f633e1c2747a98fa0109f5e0337e9f10dd6 (diff)
fixing yuv422 -> yuv420p (i need that for the vceq videos ...)
Originally committed as revision 1481 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r--libavcodec/imgconvert.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 9ab0bdbdf0..6ac5dd7292 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -242,18 +242,18 @@ static void yuv422_to_yuv420p(AVPicture *dst, AVPicture *src,
for(y=0;y<height;y+=2) {
for(x=0;x<width;x+=2) {
- lum[0] = p[0];
- cb[0] = p[1];
- lum[1] = p[2];
- cr[0] = p[3];
+ cb[0] = p[0];
+ lum[0] = p[1];
+ cr[0] = p[2];
+ lum[1] = p[3];
p += 4;
lum += 2;
cb++;
cr++;
}
for(x=0;x<width;x+=2) {
- lum[0] = p[0];
- lum[1] = p[2];
+ lum[0] = p[1];
+ lum[1] = p[3];
p += 4;
lum += 2;
}