]> git.sesse.net Git - mlt/commitdiff
apply patch from Jean Baptiste <jb@ader.ch> to fix fill-type rescaling when aspect...
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 22 May 2006 01:28:27 +0000 (01:28 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 22 May 2006 01:28:27 +0000 (01:28 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@913 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/core/transition_composite.c

index f4d8663a55e151d3472c3caeed035eb52d2ede2d..333fb6e1d337d2fa1bed2b9544657590cc80fbbf 100644 (file)
@@ -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;