Commit 29783909 authored by michaelni's avatar michaelni

reversing my own stupidity ... (raw packed yuv422 files dont use YUY2 but UYVY)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1494 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c7a0c646
...@@ -242,18 +242,18 @@ static void yuv422_to_yuv420p(AVPicture *dst, AVPicture *src, ...@@ -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) {
cb[0] = p[0]; lum[0] = p[0];
lum[0] = p[1]; cb[0] = p[1];
cr[0] = p[2]; lum[1] = p[2];
lum[1] = p[3]; cr[0] = 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[1]; lum[0] = p[0];
lum[1] = p[3]; lum[1] = p[2];
p += 4; p += 4;
lum += 2; lum += 2;
} }
......
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