]> git.sesse.net Git - mlt/blobdiff - src/modules/core/filter_greyscale.c
Massive refactoring of image conversion.
[mlt] / src / modules / core / filter_greyscale.c
index fd618c09aa02140c0e42dfbebde81b196f4fc466..4d25abccb48e04d16482505467b842c5995813b8 100644 (file)
@@ -29,8 +29,9 @@
 
 static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *format, int *width, int *height, int writable )
 {
+       *format = mlt_image_yuv422;
        int error = mlt_frame_get_image( this, image, format, width, height, 1 );
-       if ( error == 0 && *format == mlt_image_yuv422 )
+       if ( error == 0 )
        {
                uint8_t *p = *image;
                uint8_t *q = *image + *width * *height * 2;