X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ffilter_luma.c;h=94f06c7dd7e6ffdf3eba3a89bdebd99b07ebf4bb;hb=7651a182bf7191ab5db9b3741caeac2f86540281;hp=878fb6a4cde0108452c9ae808016313febd3b118;hpb=490c886cd83df28017ce1b83f5bd49682edaf0bd;p=melted diff --git a/src/modules/core/filter_luma.c b/src/modules/core/filter_luma.c index 878fb6a..94f06c7 100644 --- a/src/modules/core/filter_luma.c +++ b/src/modules/core/filter_luma.c @@ -58,7 +58,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format * } } - if ( b_frame == NULL ) + if ( b_frame == NULL || mlt_properties_get_int( b_frame, "width" ) != *width || mlt_properties_get_int( b_frame, "height" ) != *height ) { b_frame = mlt_frame_init( ); mlt_properties_set_data( properties, "frame", b_frame, 0, ( mlt_destructor )mlt_frame_close, NULL );