]> git.sesse.net Git - mlt/commitdiff
Fix aspect ratio of color producer.
authorDan Dennedy <dan@dennedy.org>
Sun, 20 Feb 2011 01:50:44 +0000 (17:50 -0800)
committerDan Dennedy <dan@dennedy.org>
Sun, 20 Feb 2011 01:50:44 +0000 (17:50 -0800)
src/modules/core/producer_colour.c

index 8667e4534684849b6b88283d6897dfdde5d3403c..7c1e19f7d83b1dcd48e446b8b3e10ab9e390e3ab 100644 (file)
@@ -50,7 +50,7 @@ mlt_producer producer_colour_init( mlt_profile profile, mlt_service_type type, c
                // Set the default properties
                mlt_properties_set( properties, "resource", colour == NULL ? "0x000000ff" : colour );
                mlt_properties_set( properties, "_resource", "" );
-               mlt_properties_set_double( properties, "aspect_ratio", 0 );
+               mlt_properties_set_double( properties, "aspect_ratio", mlt_profile_sar( profile ) );
                
                return producer;
        }