]> git.sesse.net Git - mlt/blobdiff - src/modules/core/transition_luma.c
src/framework/mlt_consumer.c
[mlt] / src / modules / core / transition_luma.c
index 11c334c087169586c46142bf64463d7dfc0fae0c..ebdc82cf15a159607acd858e9dd8ebce69aad619 100644 (file)
@@ -486,6 +486,10 @@ static int transition_get_image( mlt_frame a_frame, uint8_t **image, mlt_image_f
 
        // Since we are the consumer of the b_frame, we must pass along this
        // consumer property from the a_frame
+       if ( mlt_properties_get_double( a_props, "aspect_ratio" ) == 0.0 )
+               mlt_properties_set_double( a_props, "aspect_ratio", mlt_properties_get_double( a_props, "consumer_aspect_ratio" ) );
+       if ( mlt_properties_get_double( b_props, "aspect_ratio" ) == 0.0 )
+               mlt_properties_set_double( b_props, "aspect_ratio", mlt_properties_get_double( a_props, "consumer_aspect_ratio" ) );
        if ( !strcmp( mlt_properties_get( a_props, "rescale.interp" ), "none" ) )
                mlt_properties_set_double( b_props, "consumer_aspect_ratio", mlt_properties_get_double( a_props, "aspect_ratio" ) );
        else