]> git.sesse.net Git - mlt/commitdiff
updated affine
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 30 Jan 2004 14:00:23 +0000 (14:00 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 30 Jan 2004 14:00:23 +0000 (14:00 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@102 d19143bc-622f-0410-bfdd-b5b2a6649095

src/framework/mlt_frame.c

index 632d73ab65b61bbde8a58070b985402d16c554a0..a598f4e76b226406a1099d8d2091ee6d089385d3 100644 (file)
@@ -687,8 +687,9 @@ uint8_t *mlt_frame_rescale_yuv422( mlt_frame this, int owidth, int oheight )
                if ( abs( dx ) < in_x_range && abs( dy ) < in_y_range  )
                {
                        // We're in the input range for this row.
-                                       in_ptr = in_line + ( dx >> 1 ) * 4 + 2 * ( x & 1 );
+                                       in_ptr = in_line + dx * 2;
                        *out_ptr ++ = *in_ptr ++;
+                                       in_ptr = in_line + ( ( dx >> 1 ) << 2 ) + ( ( x & 1 ) << 1 ) + 1;
                        *out_ptr ++ = *in_ptr ++;
                }
                else