X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_frame.c;h=ff92fbffc45225c08133c85c58ba9312e084ab39;hb=2e467c2eeba2b51aecddda21d4bb97bef4cd1459;hp=fe86d675d0d5f36b82733ed10001740111882332;hpb=52fa2474c1a2472022dd12ccea5c794f66532012;p=melted diff --git a/src/framework/mlt_frame.c b/src/framework/mlt_frame.c index fe86d67..ff92fbf 100644 --- a/src/framework/mlt_frame.c +++ b/src/framework/mlt_frame.c @@ -53,7 +53,7 @@ mlt_frame mlt_frame_init( ) mlt_properties_set_int( properties, "height", 576 ); mlt_properties_set_int( properties, "normalised_width", 720 ); mlt_properties_set_int( properties, "normalised_height", 576 ); - mlt_properties_set_double( properties, "aspect_ratio", 72.0/79.0 ); + mlt_properties_set_double( properties, "aspect_ratio", 59.0/54.0 ); } else { @@ -61,7 +61,7 @@ mlt_frame mlt_frame_init( ) mlt_properties_set_int( properties, "height", 480 ); mlt_properties_set_int( properties, "normalised_width", 720 ); mlt_properties_set_int( properties, "normalised_height", 480 ); - mlt_properties_set_double( properties, "aspect_ratio", 128.0/117.0 ); + mlt_properties_set_double( properties, "aspect_ratio", 10.0/11.0 ); } mlt_properties_set_data( properties, "audio", NULL, 0, NULL, NULL ); @@ -120,7 +120,8 @@ int mlt_frame_set_aspect_ratio( mlt_frame this, double value ) mlt_position mlt_frame_get_position( mlt_frame this ) { - return mlt_properties_get_position( mlt_frame_properties( this ), "_position" ); + int pos = mlt_properties_get_position( mlt_frame_properties( this ), "_position" ); + return pos < 0 ? 0 : pos; } /** Set the position of this frame.