From d5132b032c1fe4b26b785eddf4789702a44c3bca Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Tue, 14 Sep 2004 06:12:47 +0000 Subject: [PATCH] Work arounds for scaling related issues git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@417 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/framework/mlt_frame.c | 2 ++ src/modules/core/transition_luma.c | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/framework/mlt_frame.c b/src/framework/mlt_frame.c index 7674633..4837360 100644 --- a/src/framework/mlt_frame.c +++ b/src/framework/mlt_frame.c @@ -200,6 +200,8 @@ int mlt_frame_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *for mlt_properties properties = mlt_frame_properties( this ); mlt_get_image get_image = mlt_frame_pop_get_image( this ); mlt_producer producer = mlt_properties_get_data( properties, "test_card_producer", NULL ); + + *width = *width >> 1 << 1; if ( get_image != NULL ) { diff --git a/src/modules/core/transition_luma.c b/src/modules/core/transition_luma.c index 28d89a4..f5da57e 100644 --- a/src/modules/core/transition_luma.c +++ b/src/modules/core/transition_luma.c @@ -452,6 +452,9 @@ static int transition_get_image( mlt_frame a_frame, uint8_t **image, mlt_image_f int top_field_first = mlt_properties_get_int( b_props, "top_field_first" ); int reverse = mlt_properties_get_int( properties, "reverse" ); + if ( mlt_properties_get( a_props, "rescale.interp" ) == NULL ) + mlt_properties_set( a_props, "rescale.interp", "nearest" ); + // Since we are the consumer of the b_frame, we must pass along this // consumer property from the a_frame if ( !strcmp( mlt_properties_get( a_props, "rescale.interp" ), "none" ) ) -- 1.7.4.4