X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_producer.c;h=69b02337f85aed4efcd446cee8145c3b379c9b5b;hb=0d368e962076c3b96040b86cd5d87a1bbfe0a594;hp=c4508ba6bdb34bbaec63d76bc025ba9ce0f6ac2f;hpb=74268cd86c30a0af9f03981c799aa4bba253c6e9;p=melted diff --git a/src/framework/mlt_producer.c b/src/framework/mlt_producer.c index c4508ba..69b0233 100644 --- a/src/framework/mlt_producer.c +++ b/src/framework/mlt_producer.c @@ -20,6 +20,7 @@ #include "config.h" #include "mlt_producer.h" +#include "mlt_factory.h" #include "mlt_frame.h" #include #include @@ -52,7 +53,7 @@ int mlt_producer_init( mlt_producer this, void *child ) if ( mlt_service_init( &this->parent, this ) == 0 ) { // Get the normalisation preference - char *normalisation = getenv( "MLT_NORMALISATION" ); + char *normalisation = mlt_environment( "MLT_NORMALISATION" ); // The parent is the service mlt_service parent = &this->parent; @@ -70,9 +71,9 @@ int mlt_producer_init( mlt_producer this, void *child ) mlt_properties_set_double( properties, "fps", 30000.0 / 1001.0 ); mlt_properties_set_double( properties, "_speed", 1.0 ); mlt_properties_set_position( properties, "in", 0 ); - mlt_properties_set_position( properties, "out", 1799999 ); - mlt_properties_set_position( properties, "length", 1800000 ); - mlt_properties_set_double( properties, "aspect_ratio", 4.0 / 3.0 ); + mlt_properties_set_position( properties, "out", 14999 ); + mlt_properties_set_position( properties, "length", 15000 ); + mlt_properties_set_double( properties, "aspect_ratio", 128.0 / 117.0 ); mlt_properties_set( properties, "eof", "pause" ); mlt_properties_set( properties, "resource", "" );