From cdbcbb68891bdd3e3720fbba83871a23fc450a7d Mon Sep 17 00:00:00 2001 From: ddennedy Date: Mon, 22 May 2006 01:28:27 +0000 Subject: [PATCH] apply patch from Jean Baptiste to fix fill-type rescaling when aspect ratio is equal to normalised ratio git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@913 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/core/transition_composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/core/transition_composite.c b/src/modules/core/transition_composite.c index f4d8663a..333fb6e1 100644 --- a/src/modules/core/transition_composite.c +++ b/src/modules/core/transition_composite.c @@ -747,7 +747,7 @@ static int get_b_frame_image( mlt_transition this, mlt_frame b_frame, uint8_t ** // ????: Shouln't this be the default behaviour? if ( mlt_properties_get_int( properties, "fill" ) && scaled_width > 0 && scaled_height > 0 ) { - if ( scaled_height < normalised_height && scaled_width * normalised_height / scaled_height < normalised_width ) + if ( scaled_height < normalised_height && scaled_width * normalised_height / scaled_height <= normalised_width ) { scaled_width = rint( 0.5 + scaled_width * normalised_height / scaled_height ); scaled_height = normalised_height; -- 2.39.2