]> git.sesse.net Git - mlt/commitdiff
filter_crop.c: bugfix chroma alignment
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 3 Apr 2009 02:38:30 +0000 (02:38 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 3 Apr 2009 02:38:30 +0000 (02:38 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1382 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/core/filter_crop.c

index 6e0fcd08569ee61f0b3b40f44cf74c41dc11e7a9..0857c1d2f344c3b1a781fda9bffc7db7c1130a4f 100644 (file)
@@ -83,6 +83,9 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
                if ( top % 2 )
                        mlt_properties_set_int( properties, "top_field_first", !mlt_properties_get_int( properties, "top_field_first" ) );
 
+               left  -= left % 2;
+               owidth = *width - left - right;
+
                // Create the output image
                uint8_t *output = mlt_pool_alloc( owidth * ( oheight + 1 ) * 2 );
                if ( output )