[Mlt-devel] mlt/src/framework mlt_tractor.c,1.45,1.46
Brought to you by:
ddennedy,
lilo_booter
From: Charles Y. <lil...@us...> - 2005-08-19 12:22:25
|
Update of /cvsroot/mlt/mlt/src/framework In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12100/src/framework Modified Files: mlt_tractor.c Log Message: + Attempt to ensure that the aspect ratio of the background is the reported ar of the output frame Index: mlt_tractor.c =================================================================== RCS file: /cvsroot/mlt/mlt/src/framework/mlt_tractor.c,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- mlt_tractor.c 16 Jul 2005 13:36:23 -0000 1.45 +++ mlt_tractor.c 19 Aug 2005 12:22:15 -0000 1.46 @@ -298,6 +298,7 @@ // 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 @@ 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 @@ 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 ) |