projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2a743f6
)
fixing yuv422 -> yuv420p (i need that for the vceq videos ...)
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 20 Jan 2003 20:33:08 +0000
(20:33 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 20 Jan 2003 20:33:08 +0000
(20:33 +0000)
Originally committed as revision 1481 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/imgconvert.c
patch
|
blob
|
history
diff --git
a/libavcodec/imgconvert.c
b/libavcodec/imgconvert.c
index
9ab0bdb
..
6ac5dd7
100644
(file)
--- 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;
}