This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
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
tags/v0.5
Michael Niedermayer
22 years ago
parent
8aa3ee32c2
commit
e78df69997
1 changed files
with
6 additions
and
6 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-6
libavcodec/imgconvert.c
+ 6
- 6
libavcodec/imgconvert.c
View File
@@ -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;
}
Write
Preview
Loading…
Cancel
Save