]> git.sesse.net Git - mlt/commitdiff
Luma generation and use
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 24 Dec 2004 10:05:37 +0000 (10:05 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 24 Dec 2004 10:05:37 +0000 (10:05 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@572 d19143bc-622f-0410-bfdd-b5b2a6649095

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;