From 4c4628ee4635219ae5ca1b9eea562067cac44226 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Wed, 3 Jun 2009 14:22:18 -0700 Subject: [PATCH] Improve alpha scaling conditional logic. Signed-off-by: Dan Dennedy --- src/modules/core/filter_rescale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/core/filter_rescale.c b/src/modules/core/filter_rescale.c index a765900a..f4594d8b 100644 --- a/src/modules/core/filter_rescale.c +++ b/src/modules/core/filter_rescale.c @@ -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 ); } } -- 2.39.2