diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-05-16 21:47:02 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-05-16 21:47:02 +0000 |
commit | 62cf114b59e793a9c80db006529f2de2322569b7 (patch) | |
tree | ce2107a2762c08dbc88c809f5de806714dc47c39 /libavcodec/dv.c | |
parent | 377ec88802f2023b8091954f880f94b0d5b49a98 (diff) | |
download | ffmpeg-streaming-62cf114b59e793a9c80db006529f2de2322569b7.zip ffmpeg-streaming-62cf114b59e793a9c80db006529f2de2322569b7.tar.gz |
seems i guessed correctly (last 411 chroma block isnt scaled but cut and reordered)
Originally committed as revision 1888 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r-- | libavcodec/dv.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 7727892..d454e61 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -476,12 +476,12 @@ static inline void dv_decode_video_segment(DVVideoDecodeContext *s, ptr = pixels; for(y = 0;y < 8; y++) { /* convert to 411P */ - c_ptr1 = c_ptr + linesize; - c_ptr1[0] = c_ptr[0] = (ptr[0] + ptr[1]) >> 1; - c_ptr1[1] = c_ptr[1] = (ptr[2] + ptr[3]) >> 1; - c_ptr1[2] = c_ptr[2] = (ptr[4] + ptr[5]) >> 1; - c_ptr1[3] = c_ptr[3] = (ptr[6] + ptr[7]) >> 1; - c_ptr += linesize * 2; + c_ptr1 = c_ptr + 8*linesize; + c_ptr[0]= ptr[0]; c_ptr1[0]= ptr[4]; + c_ptr[1]= ptr[1]; c_ptr1[1]= ptr[5]; + c_ptr[2]= ptr[2]; c_ptr1[2]= ptr[6]; + c_ptr[3]= ptr[3]; c_ptr1[3]= ptr[7]; + c_ptr += linesize; ptr += 8; } } else { |