]> git.sesse.net Git - mlt/blobdiff - src/modules/core/filter_luma.c
+ Added an option to override alignment and transparent borders for compositing
[mlt] / src / modules / core / filter_luma.c
index 878fb6a4cde0108452c9ae808016313febd3b118..94f06c7dd7e6ffdf3eba3a89bdebd99b07ebf4bb 100644 (file)
@@ -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 );