X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ffilter_luma.c;h=ef5043e329dea6eccbd394bc26765b4f8fa60da4;hb=dcec48366f9349da4bab349a2945bdd8cca18b81;hp=e36ee3a2cc22c8b494a624cdab8fbe3ee6658565;hpb=1c246bcd681406f848726ff685eddb62efd7ee83;p=melted diff --git a/src/modules/core/filter_luma.c b/src/modules/core/filter_luma.c index e36ee3a..ef5043e 100644 --- a/src/modules/core/filter_luma.c +++ b/src/modules/core/filter_luma.c @@ -52,9 +52,8 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format * { mlt_properties luma_properties = mlt_transition_properties( luma ); mlt_properties_set_int( luma_properties, "in", 0 ); - mlt_properties_set_int( luma_properties, "out", 24 ); + mlt_properties_set_int( luma_properties, "out", out ); mlt_properties_set_int( luma_properties, "reverse", 1 ); - mlt_properties_pass( luma_properties, properties, "luma." ); mlt_properties_set_data( properties, "luma", luma, 0, ( mlt_destructor )mlt_transition_close, NULL ); } } @@ -68,7 +67,11 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format * if ( luma != NULL && ( mlt_properties_get( properties, "blur" ) != NULL || mlt_frame_get_position( this ) % ( out + 1 ) != out ) ) + { + mlt_properties luma_properties = mlt_transition_properties( luma ); + mlt_properties_pass( luma_properties, properties, "luma." ); mlt_transition_process( luma, this, b_frame ); + } error = mlt_frame_get_image( this, image, format, width, height, 1 );