]> git.sesse.net Git - mlt/blobdiff - src/modules/core/filter_gamma.c
Massive refactoring of image conversion.
[mlt] / src / modules / core / filter_gamma.c
index e4fe15b3dd491c4c0389519f79dcd88618722ef2..08cfdcaab8a901ae099a8d6613049d9df170d4d3 100644 (file)
 
 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 )
        {
                // Get the gamma value
                double gamma = mlt_properties_get_double( MLT_FRAME_PROPERTIES( this ), "gamma" );