mlt_profile mlt_profile_select( const char *name )
{
const char *prefix = PREFIX;
- char *filename = calloc( 1, strlen( prefix ) + strlen( PROFILES_DIR ) + strlen( name ) + 1 );
+ char *filename = calloc( 1, strlen( prefix ) + strlen( PROFILES_DIR ) + strlen( name ) + 2 );
strcpy( filename, prefix );
if ( filename[ strlen( filename ) - 1 ] != '/' )
filename[ strlen( filename ) ] = '/';
// Set MLT_NORMALISATION to appease legacy modules
char *profile_name = mlt_environment( "MLT_PROFILE" );
if ( strstr( profile_name, "_ntsc" ) ||
- strstr( profile_name, "_atsc" ) ||
- strstr( profile_name, "_60i" ) ||
- strstr( profile_name, "_30p" ) )
+ strstr( profile_name, "_60" ) ||
+ strstr( profile_name, "_30" ) )
{
mlt_environment_set( "MLT_NORMALISATION", "NTSC" );
}
else if ( strstr( profile_name, "_pal" ) ||
- strstr( profile_name, "_50i" ) ||
- strstr( profile_name, "_25p" ) )
+ strstr( profile_name, "_50" ) ||
+ strstr( profile_name, "_25" ) )
{
mlt_environment_set( "MLT_NORMALISATION", "PAL" );
}