]> git.sesse.net Git - mlt/commitdiff
transition_affine.c: bugfix chroma alignment
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sat, 14 Feb 2009 07:36:33 +0000 (07:36 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sat, 14 Feb 2009 07:36:33 +0000 (07:36 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1354 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/plus/transition_affine.c

index 98b6392e5d9814aba187275e805de1533581406b..0c6bb1fd316d0a119bce723738e744f159b83a65 100644 (file)
@@ -122,7 +122,7 @@ static inline float composite_calculate_key( mlt_transition this, char *name, ch
        return result.x;
 }
 
-typedef struct 
+typedef struct
 {
        float matrix[3][3];
 }
@@ -330,8 +330,8 @@ static inline void get_affine( affine_t *affine, mlt_transition this, float posi
                affine_rotate_x( affine->matrix, fix_rotate_x + rotate_x * position );
                affine_rotate_y( affine->matrix, fix_rotate_y + rotate_y * position );
                affine_rotate_z( affine->matrix, fix_rotate_z + rotate_z * position );
-               affine_shear( affine->matrix, 
-                                         fix_shear_x + shear_x * position, 
+               affine_shear( affine->matrix,
+                                         fix_shear_x + shear_x * position,
                                          fix_shear_y + shear_y * position,
                                          fix_shear_z + shear_z * position );
                affine_offset( affine->matrix, ox, oy );
@@ -453,7 +453,8 @@ static int transition_get_image( mlt_frame a_frame, uint8_t **image, mlt_image_f
 
                int cx = result.x + ( b_width >> 1 );
                int cy = result.y + ( b_height >> 1 );
-       
+               cx -= cx % 2;
+
                int lower_x = 0 - cx;
                int upper_x = *width - cx;
                int lower_y = 0 - cy;