X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmodules%2Fvmfx%2Ffilter_shape.c;h=00b0ed082538d743719d39c260a562960b019131;hb=7a72d79acc3ac5ca03c382631110bc7b4df5bd7b;hp=fad32f4bdfdcb0c0fa2c2dcfc50a768b2f5f4257;hpb=d33f444d4ef4c7bc4074d07a49eca0ab7d108394;p=mlt diff --git a/src/modules/vmfx/filter_shape.c b/src/modules/vmfx/filter_shape.c index fad32f4b..00b0ed08 100644 --- a/src/modules/vmfx/filter_shape.c +++ b/src/modules/vmfx/filter_shape.c @@ -49,6 +49,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format * int invert = mlt_properties_get_int( MLT_FILTER_PROPERTIES( filter ), "invert" ) * 255; // Render the frame + *format = mlt_image_yuv422; if ( mlt_frame_get_image( this, image, format, width, height, writable ) == 0 && ( !use_luminance || ( int )mix != 1 ) ) { // Get the alpha mask of the source @@ -145,7 +146,7 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) if ( strchr( resource, '%' ) ) { FILE *test; - sprintf( temp, "%s/lumas/%s/%s", mlt_factory_prefix( ), mlt_environment( "MLT_NORMALISATION" ), strchr( resource, '%' ) + 1 ); + sprintf( temp, "%s/lumas/%s/%s", mlt_environment( "MLT_DATA" ), mlt_environment( "MLT_NORMALISATION" ), strchr( resource, '%' ) + 1 ); test = fopen( temp, "r" ); if ( test == NULL )