From 20b174a97de49eff52526ec3a8b3154d8e2ce815 Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Fri, 30 Jan 2004 14:00:23 +0000 Subject: [PATCH] updated affine git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@102 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/framework/mlt_frame.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/framework/mlt_frame.c b/src/framework/mlt_frame.c index 632d73a..a598f4e 100644 --- a/src/framework/mlt_frame.c +++ b/src/framework/mlt_frame.c @@ -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 -- 1.7.4.4