From: lilo_booter Date: Sat, 18 Sep 2004 14:00:21 +0000 (+0000) Subject: aspect ratio fix for test card X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=9963a6c9ec5fc7cf01d0932151aec4bcf4cc409b;p=melted aspect ratio fix for test card git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@426 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/framework/mlt_frame.c b/src/framework/mlt_frame.c index 4837360..e3e4f3f 100644 --- a/src/framework/mlt_frame.c +++ b/src/framework/mlt_frame.c @@ -228,6 +228,7 @@ int mlt_frame_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *for mlt_properties_set_data( properties, "image", *buffer, *width * *height * 2, NULL, NULL ); mlt_properties_set_int( properties, "width", *width ); mlt_properties_set_int( properties, "height", *height ); + mlt_properties_set_double( properties, "aspect_ratio", mlt_frame_get_aspect_ratio( test_frame ) ); mlt_properties_set( properties, "rescale.interp", "none" ); mlt_properties_set( properties, "scale", "off" ); }