consumer_avformat.c:
[melted] / src / framework / mlt_profile.c
index b9e230f..ea5f098 100644 (file)
@@ -109,8 +109,8 @@ mlt_profile mlt_profile_init( const char *name )
                                profile->width = 720;
                                profile->height = 576;
                                profile->progressive = 0;
-                               profile->sample_aspect_num = 59;
-                               profile->sample_aspect_den = 54;
+                               profile->sample_aspect_num = 16;
+                               profile->sample_aspect_den = 15;
                                profile->display_aspect_num = 4;
                                profile->display_aspect_den = 3;
                        }
@@ -144,7 +144,7 @@ mlt_profile mlt_profile_load_file( const char *file )
        }
 
        // Set MLT_NORMALISATION to appease legacy modules
-       char *profile_name = getenv( "MLT_PROFILE" );
+       char *profile_name = mlt_environment( "MLT_PROFILE" );
        if ( profile_name )
        {
                if ( strstr( profile_name, "_ntsc" ) ||