]> git.sesse.net Git - mlt/blobdiff - src/modules/vmfx/filter_chroma_hold.c
fix property-changed becoming a service-changed event (kdenlive-2468)
[mlt] / src / modules / vmfx / filter_chroma_hold.c
index 2046f925f99a70709123a37a61a6ba6fea26473f..47b5ea0302dfb58f7801207a23d90a6fd7a25956 100644 (file)
@@ -51,8 +51,9 @@ static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format
        uint8_t b = ( key_val >>  8 ) & 0xff;
        uint8_t y, u, v;
 
-       RGB2YUV( r, g, b, y, u, v );
+       RGB2YUV_601_SCALED( r, g, b, y, u, v );
 
+       *format = mlt_image_yuv422;
        if ( mlt_frame_get_image( frame, image, format, width, height, writable ) == 0 )
        {
                uint8_t alpha = 0;
@@ -91,7 +92,7 @@ mlt_filter filter_chroma_hold_init( mlt_profile profile, mlt_service_type type,
        mlt_filter this = mlt_filter_new( );
        if ( this != NULL )
        {
-               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "key", arg == NULL ? "0xc00000" : arg );
+               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "key", arg == NULL ? "0xc0000000" : arg );
                mlt_properties_set_double( MLT_FILTER_PROPERTIES( this ), "variance", 0.15 );
                this->process = filter_process;
        }