]> git.sesse.net Git - mlt/commitdiff
Improve alpha scaling conditional logic.
authorDan Dennedy <dan@dennedy.org>
Wed, 3 Jun 2009 21:22:18 +0000 (14:22 -0700)
committerDan Dennedy <dan@dennedy.org>
Wed, 3 Jun 2009 21:22:18 +0000 (14:22 -0700)
Signed-off-by: Dan Dennedy <dan@dennedy.org>
src/modules/core/filter_rescale.c

index a765900a1e50700d71c14b023bd780ac6f871fcc..f4594d8bc61b4c0ba1b39c00240f698ea12ecbab 100644 (file)
@@ -256,7 +256,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
                                // Scale the alpha channel only if exists and not correct size
                                int alpha_size = 0;
                                mlt_properties_get_data( properties, "alpha", &alpha_size );
-                               if ( alpha_size > 0 && alpha_size != ( owidth * oheight ) )
+                               if ( alpha_size > 0 && alpha_size != ( owidth * oheight ) && alpha_size != ( owidth * ( oheight + 1 ) ) )
                                        scale_alpha( this, iwidth, iheight, owidth, oheight );
                        }
                }