X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ffilter_resize.c;h=ebc5486d3670128d9afef6bf24f7ede76361d0b2;hb=413ab111e30a0ccc40d207fa3f7b87b7e8f29313;hp=f9f80dfe4875bf6ccfc3d5224b13171f0fa27b10;hpb=af570ac8e6d5601fc2e84a6955c94b4ff9194bd7;p=melted 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;