From: lilo_booter Date: Thu, 20 Apr 2006 09:04:15 +0000 (+0000) Subject: + Field order control reworked (meta.top_field_first has priority over source) X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=413ab111e30a0ccc40d207fa3f7b87b7e8f29313;p=mlt + Field order control reworked (meta.top_field_first has priority over source) git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@908 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/core/filter_resize.c b/src/modules/core/filter_resize.c index f9f80dfe..ebc5486d 100644 --- a/src/modules/core/filter_resize.c +++ b/src/modules/core/filter_resize.c @@ -119,8 +119,12 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format * // Get the requested scale operation char *op = mlt_properties_get( MLT_FILTER_PROPERTIES( filter ), "scale" ); + // Provides a manual override for misreported field order + if ( mlt_properties_get( properties, "meta.top_field_first" ) ) + mlt_properties_set( properties, "top_field_first", mlt_properties_get_int( properties, "meta.top_field_first" ) ); + // Correct field order if needed - if ( mlt_properties_get_int( properties, "top_field_first" ) == 1 || mlt_properties_get_int( properties, "meta.top_field_first" ) == 1 ) + if ( mlt_properties_get_int( properties, "top_field_first" ) == 1 ) { // Get the input image, width and height int size;