From dc319e10595da94fad5bdff36fc785d6d2637d1b Mon Sep 17 00:00:00 2001 From: ddennedy Date: Fri, 3 Apr 2009 02:38:30 +0000 Subject: [PATCH] filter_crop.c: bugfix chroma alignment git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1382 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/core/filter_crop.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/modules/core/filter_crop.c b/src/modules/core/filter_crop.c index 6e0fcd0..0857c1d 100644 --- a/src/modules/core/filter_crop.c +++ b/src/modules/core/filter_crop.c @@ -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 ) -- 1.7.4.4