From 54ad5dc2fa65c1cb17d63491037eae5ce9154d84 Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Fri, 19 Aug 2005 12:22:15 +0000 Subject: [PATCH] + Attempt to ensure that the aspect ratio of the background is the reported ar of the output frame git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@805 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/framework/mlt_tractor.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/framework/mlt_tractor.c b/src/framework/mlt_tractor.c index 120d4fb..e545839 100644 --- a/src/framework/mlt_tractor.c +++ b/src/framework/mlt_tractor.c @@ -298,6 +298,7 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int tra // We'll store audio and video frames to use here mlt_frame audio = NULL; mlt_frame video = NULL; + mlt_frame first_video = NULL; // Temporary properties mlt_properties temp_properties = NULL; @@ -385,6 +386,8 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int tra mlt_deque_push_front( MLT_FRAME_IMAGE_STACK( temp ), video ); } video = temp; + if ( first_video == NULL ) + first_video = temp; mlt_properties_set_int( MLT_FRAME_PROPERTIES( temp ), "image_count", ++ image_count ); image_count = 1; } @@ -399,7 +402,7 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int tra if ( video != NULL ) { - mlt_properties video_properties = MLT_FRAME_PROPERTIES( video ); + mlt_properties video_properties = MLT_FRAME_PROPERTIES( first_video ); mlt_frame_push_service( *frame, video ); mlt_frame_push_service( *frame, producer_get_image ); if ( global_feed ) -- 1.7.4.4