X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ftransition_composite.c;h=6cc1055b85b297f558b52a5dc9310cdff7a9e161;hb=24fd9b1360d877a8db8b3ef472c7651ec2cf71a2;hp=5bc6aff51ad35cb9b7d97a0156747385e7e8ac1f;hpb=4a16e2d841d4b567d658a35350fe579ea4c8c4ff;p=melted diff --git a/src/modules/core/transition_composite.c b/src/modules/core/transition_composite.c index 5bc6aff..6cc1055 100644 --- a/src/modules/core/transition_composite.c +++ b/src/modules/core/transition_composite.c @@ -554,6 +554,14 @@ static uint16_t* get_luma( mlt_properties properties, int width, int height ) // If the filename property changed, reload the map char *resource = mlt_properties_get( properties, "luma" ); + char temp[ 512 ]; + + if ( strchr( resource, '%' ) ) + { + sprintf( temp, "%s/lumas/%s/%s", mlt_factory_prefix( ), mlt_environment( "MLT_NORMALISATION" ), strchr( resource, '%' ) + 1 ); + resource = temp; + } + if ( resource != NULL && ( luma_bitmap == NULL || luma_width != width || luma_height != height ) ) { uint16_t *orig_bitmap = mlt_properties_get_data( properties, "_luma.orig_bitmap", NULL );