]> git.sesse.net Git - mlt/commitdiff
Fix melt crashing due to many things depending on consumer_aspect_ratio.
authorDan Dennedy <dan@dennedy.org>
Sat, 1 Jan 2011 22:17:03 +0000 (14:17 -0800)
committerDan Dennedy <dan@dennedy.org>
Sat, 1 Jan 2011 22:17:03 +0000 (14:17 -0800)
src/melt/melt.c

index 24c2483d5361c24590b42f9da740d03ea91d93f8..1bf79074e055f5e44b4609557ea1212b6fac458e 100644 (file)
@@ -347,6 +347,7 @@ static void guess_profile( mlt_producer melt, mlt_profile profile )
 
        if ( ! mlt_service_get_frame( MLT_PRODUCER_SERVICE(melt), &fr, 0 ) && fr )
        {
+               mlt_properties_set_double( MLT_FRAME_PROPERTIES( fr ), "consumer_aspect_ratio", mlt_profile_sar( profile ) );
                if ( ! mlt_frame_get_image( fr, &buffer, &fmt, &w, &h, 0 ) )
                {
                        // Some source properties are not exposed until after the first get_image call.