From cb981f58210e52ec52b3bd3446785cf34bfaa53b Mon Sep 17 00:00:00 2001 From: ddennedy Date: Fri, 20 Jul 2007 07:03:53 +0000 Subject: [PATCH] mlt_profile.c: revise substrings for legacy setting of MLT_NORMALISATION git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1012 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/framework/mlt_profile.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/framework/mlt_profile.c b/src/framework/mlt_profile.c index c9c67d26..db97909e 100644 --- a/src/framework/mlt_profile.c +++ b/src/framework/mlt_profile.c @@ -102,15 +102,14 @@ mlt_profile mlt_profile_load_file( const char *file ) // 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" ); } -- 2.39.2