From 62cf114b59e793a9c80db006529f2de2322569b7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 16 May 2003 21:47:02 +0000 Subject: [PATCH] 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 --- libavcodec/dv.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 7727892081..d454e61e67 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 {