X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ffilter_rescale.c;h=0305db4174026f9d14811fccd1cd26dab1170b37;hb=4b72d1071d80828a599085618bbba67a18d14e56;hp=164d9cd64b09e6b048ae40557dcfc3632e5e25dc;hpb=f00476101550ec7d8e863f6516aa83bc1b524570;p=melted diff --git a/src/modules/core/filter_rescale.c b/src/modules/core/filter_rescale.c index 164d9cd..0305db4 100644 --- a/src/modules/core/filter_rescale.c +++ b/src/modules/core/filter_rescale.c @@ -110,9 +110,10 @@ static int filter_scale( mlt_frame this, uint8_t **image, mlt_image_format iform static void scale_alpha( mlt_frame this, int iwidth, int iheight, int owidth, int oheight ) { - uint8_t *input = mlt_frame_get_alpha_mask( this ); + int size = 0; + uint8_t *input = mlt_properties_get_data( MLT_FRAME_PROPERTIES( this ), "alpha", &size ); - if ( input != NULL ) + if ( input != NULL && ( ( size == iwidth * iheight ) || size == ( iwidth * ( iheight + 1 ) ) ) ) { uint8_t *output = mlt_pool_alloc( owidth * oheight );