diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-01-23 01:20:47 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-01-23 01:20:47 +0000 |
commit | e78df69997e3c357b721631dbaac0b3d1c019b01 (patch) | |
tree | 60f397a7582867f73c6e35e539c0533cb9b7e141 | |
parent | 8aa3ee32c257541a91bab1e47364f4f655e9e69d (diff) | |
download | ffmpeg-e78df69997e3c357b721631dbaac0b3d1c019b01.tar.gz |
reversing my own stupidity ... (raw packed yuv422 files dont use YUY2 but UYVY)
Originally committed as revision 1494 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/imgconvert.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 82e520ef9d..218c844b39 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) { - cb[0] = p[0]; - lum[0] = p[1]; - cr[0] = p[2]; - lum[1] = p[3]; + lum[0] = p[0]; + cb[0] = p[1]; + lum[1] = p[2]; + cr[0] = p[3]; p += 4; lum += 2; cb++; cr++; } for(x=0;x<width;x+=2) { - lum[0] = p[1]; - lum[1] = p[3]; + lum[0] = p[0]; + lum[1] = p[2]; p += 4; lum += 2; } |