]> git.sesse.net Git - mlt/commitdiff
+ Field order control reworked (meta.top_field_first has priority over source)
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 20 Apr 2006 09:04:15 +0000 (09:04 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 20 Apr 2006 09:04:15 +0000 (09:04 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@908 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/core/filter_resize.c

index f9f80dfe4875bf6ccfc3d5224b13171f0fa27b10..ebc5486d3670128d9afef6bf24f7ede76361d0b2 100644 (file)
@@ -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;