]> git.sesse.net Git - mlt/blobdiff - src/modules/core/transition_composite.c
Luma generation and use
[mlt] / src / modules / core / transition_composite.c
index 6cc1055b85b297f558b52a5dc9310cdff7a9e161..6aef888c332af23ef8ffd7db2b66e6bcfc0ec678 100644 (file)
@@ -556,7 +556,7 @@ static uint16_t* get_luma( mlt_properties properties, int width, int height )
 
        char temp[ 512 ];
 
-       if ( strchr( resource, '%' ) )
+       if ( resource != NULL && strchr( resource, '%' ) )
        {
                sprintf( temp, "%s/lumas/%s/%s", mlt_factory_prefix( ), mlt_environment( "MLT_NORMALISATION" ), strchr( resource, '%' ) + 1 );
                resource = temp;