]> git.sesse.net Git - mlt/blobdiff - src/modules/plus/filter_sepia.c
Massive refactoring of image conversion.
[mlt] / src / modules / plus / filter_sepia.c
index aa20b23a71a8c3546b8b02c5a790bf43243d168e..bb675651f1cbec59596a3c1ea7e65d70580ef648 100644 (file)
@@ -34,10 +34,11 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
        mlt_filter filter = mlt_frame_pop_service( this );
 
        // 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 && *image && *format == mlt_image_yuv422 )
+       if ( error == 0 && *image )
        {
                // We modify the whole image
                uint8_t *p = *image;