X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fsrc%2FMltFrame.cpp;fp=mlt%2B%2B%2Fsrc%2FMltFrame.cpp;h=5d974ce0f32341c5b22198844dfc9e091cedcec5;hb=47fb1506a99bae1c9cb90f313176f9dab58d5854;hp=546220d968d607218b22288b80ef208d4d92bd41;hpb=bad3af93817e3f922c832f9ff1e2cecf4e8aa9d4;p=melted diff --git a/mlt++/src/MltFrame.cpp b/mlt++/src/MltFrame.cpp index 546220d..5d974ce 100644 --- a/mlt++/src/MltFrame.cpp +++ b/mlt++/src/MltFrame.cpp @@ -52,8 +52,8 @@ mlt_properties Frame::get_properties( ) uint8_t *Frame::get_image( mlt_image_format &format, int &w, int &h, int writable ) { uint8_t *image = NULL; - if ( mlt_properties_get_int( get_properties( ), "consumer_aspect_ratio" ) == 0 ) - mlt_properties_set_int( get_properties( ), "consumer_aspect_ratio", 1 ); + if ( get_double( "consumer_aspect_ratio" ) == 0.0 ) + set( "consumer_aspect_ratio", 1.0 ); mlt_frame_get_image( get_frame( ), &image, &format, &w, &h, writable ); set( "format", format ); set( "writable", writable ); @@ -63,8 +63,8 @@ uint8_t *Frame::get_image( mlt_image_format &format, int &w, int &h, int writabl unsigned char *Frame::fetch_image( mlt_image_format f, int w, int h, int writable ) { uint8_t *image = NULL; - if ( mlt_properties_get_int( get_properties( ), "consumer_aspect_ratio" ) == 0 ) - mlt_properties_set_int( get_properties( ), "consumer_aspect_ratio", 1 ); + if ( get_double( "consumer_aspect_ratio" ) == 0.0 ) + set( "consumer_aspect_ratio", 1.0 ); mlt_frame_get_image( get_frame( ), &image, &f, &w, &h, writable ); set( "format", f ); set( "writable", writable );