]> git.sesse.net Git - mlt/blobdiff - src/modules/core/filter_watermark.c
filter_watermark.c, filter_composite.c: support explicit deinterlace of
[mlt] / src / modules / core / filter_watermark.c
index ce1b0f170ad57244013ddad68410f3cc1a42888a..8136958c8388613d1ea7a5fd65803dcba511a64a 100644 (file)
@@ -146,7 +146,7 @@ static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format
                        // Set the b frame to be in the same position and have same consumer requirements
                        mlt_frame_set_position( b_frame, position );
                        mlt_properties_set_double( b_props, "consumer_aspect_ratio", mlt_properties_get_double( a_props, "consumer_aspect_ratio" ) );
-                       mlt_properties_set_int( b_props, "consumer_deinterlace", mlt_properties_get_double( a_props, "consumer_deinterlace" ) );
+                       mlt_properties_set_int( b_props, "consumer_deinterlace", mlt_properties_get_int( a_props, "consumer_deinterlace" ) || mlt_properties_get_int( properties, "deinterlace" ) );
                        mlt_properties_set_int( b_props, "output_ratio", mlt_properties_get_double( a_props, "output_ratio" ) );
 
                        // Check for the special case - no aspect ratio means no problem :-)