]> git.sesse.net Git - mlt/blobdiff - src/modules/core/transition_composite.c
apply patch from Jean Baptiste <jb@ader.ch> to fix fill-type rescaling when aspect...
[mlt] / 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;