]> git.sesse.net Git - mlt/blobdiff - src/modules/core/filter_brightness.c
Massive refactoring of image conversion.
[mlt] / src / modules / core / filter_brightness.c
index 07dce1c8160cdeef12d00a9cf194dc58c2187f31..891f4b39864cee627dc1eb2d01417cb34d3965ed 100644 (file)
 static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *format, int *width, int *height, int writable )
 {
        // Get the image
+       *format = mlt_image_yuv422;
        int error = mlt_frame_get_image( this, image, format, width, height, 1 );
 
        // Only process if we have no error and a valid colour space
-       if ( error == 0 && *format == mlt_image_yuv422 )
+       if ( error == 0 )
        {
                // Get the brightness level
                double level = mlt_properties_get_double( MLT_FRAME_PROPERTIES( this ), "brightness" );