From 36b02fc562ad09c32a11be6a27bd8635e332d795 Mon Sep 17 00:00:00 2001 From: j-b-m Date: Sun, 1 Jul 2007 08:26:26 +0000 Subject: [PATCH] Some lines were missing in my previous commit, so now we really fix that aspect ratio stuff git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1002 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/kdenlive/producer_framebuffer.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/modules/kdenlive/producer_framebuffer.c b/src/modules/kdenlive/producer_framebuffer.c index 9e6ba2d..3bf2232 100644 --- a/src/modules/kdenlive/producer_framebuffer.c +++ b/src/modules/kdenlive/producer_framebuffer.c @@ -165,7 +165,9 @@ static int producer_get_frame( mlt_producer this, mlt_frame_ptr frame, int index // Get the frame mlt_service_get_frame( MLT_PRODUCER_SERVICE( real_producer ), &first_frame, index ); - double ratio = (double) mlt_properties_get_int( MLT_FRAME_PROPERTIES( first_frame ), "width" ) / (double) mlt_properties_get_int( MLT_FRAME_PROPERTIES( first_frame ), "height" ) / ( (double) mlt_properties_get_int(MLT_FRAME_PROPERTIES( *frame ), "width" ) / (double) mlt_properties_get_int( MLT_FRAME_PROPERTIES( *frame ), "height" )); + double ratio = mlt_properties_get_double( MLT_PRODUCER_PROPERTIES( real_producer ), "aspect_ratio" ) * (double) mlt_properties_get_int( MLT_FRAME_PROPERTIES( first_frame ), "width" ) / (double) mlt_properties_get_int( MLT_FRAME_PROPERTIES( first_frame ), "height" ) / ( (double) mlt_properties_get_int(MLT_FRAME_PROPERTIES( *frame ), "width" ) / (double) mlt_properties_get_int( MLT_FRAME_PROPERTIES( *frame ), "height" )); + + mlt_properties_set_double( properties, "ratio_fix", ratio ); } // Make sure things are in their place -- 1.7.4.4