]> git.sesse.net Git - mlt/blobdiff - mlt/src/framework/mlt_frame.c
miracle part 1
[mlt] / mlt / src / framework / mlt_frame.c
index 16d51f89adc78e9c96d8c4efc90cbb1c350316a1..dd179837a149001ed6ac8e25790efce5972083d1 100644 (file)
@@ -659,7 +659,7 @@ 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 >> 1 ) * 4 + 2 * ( x & 1 );
                        *out_ptr ++ = *in_ptr ++;
                        *out_ptr ++ = *in_ptr ++;
                }