]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_tractor.c
src/framework/mlt_frame.c
[mlt] / src / framework / mlt_tractor.c
index b044873bfb840d30f65e77949b8c86941f2fbdbd..094352e32678ccb70ef7959dbabaec3f91dcc304 100644 (file)
@@ -389,6 +389,11 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int tra
                                        video = temp;
                                        if ( first_video == NULL )
                                                first_video = temp;
+
+                                       // Ensure that all frames know the aspect ratio of the background
+                                       mlt_properties_set_double( temp_properties, "output_ratio", 
+                                                                                          mlt_properties_get_double( MLT_FRAME_PROPERTIES( first_video ), "aspect_ratio" ) );
+
                                        mlt_properties_set_int( MLT_FRAME_PROPERTIES( temp ), "image_count", ++ image_count );
                                        image_count = 1;
                                }