From 413ab111e30a0ccc40d207fa3f7b87b7e8f29313 Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Thu, 20 Apr 2006 09:04:15 +0000 Subject: [PATCH] + 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 --- src/modules/core/filter_resize.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/modules/core/filter_resize.c b/src/modules/core/filter_resize.c index f9f80df..ebc5486 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; -- 1.7.4.4