Work arounds for scaling related issues
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 14 Sep 2004 06:12:47 +0000 (06:12 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 14 Sep 2004 06:12:47 +0000 (06:12 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@417 d19143bc-622f-0410-bfdd-b5b2a6649095

src/framework/mlt_frame.c
src/modules/core/transition_luma.c

index 7674633..4837360 100644 (file)
@@ -200,6 +200,8 @@ int mlt_frame_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *for
        mlt_properties properties = mlt_frame_properties( this );
        mlt_get_image get_image = mlt_frame_pop_get_image( this );
        mlt_producer producer = mlt_properties_get_data( properties, "test_card_producer", NULL );
+
+       *width = *width >> 1 << 1;
        
        if ( get_image != NULL )
        {
index 28d89a4..f5da57e 100644 (file)
@@ -452,6 +452,9 @@ static int transition_get_image( mlt_frame a_frame, uint8_t **image, mlt_image_f
        int top_field_first =  mlt_properties_get_int( b_props, "top_field_first" );
        int reverse = mlt_properties_get_int( properties, "reverse" );
 
+       if ( mlt_properties_get( a_props, "rescale.interp" ) == NULL )
+               mlt_properties_set( a_props, "rescale.interp", "nearest" );
+
        // Since we are the consumer of the b_frame, we must pass along this
        // consumer property from the a_frame
        if ( !strcmp( mlt_properties_get( a_props, "rescale.interp" ), "none" ) )