]> git.sesse.net Git - mlt/blobdiff - src/modules/oldfilm/filter_oldfilm.c
Massive refactoring of image conversion.
[mlt] / src / modules / oldfilm / filter_oldfilm.c
index 11a6c3e9e00c7d6486e32b6c589f23371328687e..398aa44b0b9fbe3eb5296954fab2cfd967940de5 100644 (file)
@@ -29,9 +29,10 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
 {
 
        mlt_filter filter = mlt_frame_pop_service( this );
+       *format = mlt_image_yuv422;
        int error = mlt_frame_get_image( this, image, format, width, height, 1 );
        
-       if (  error == 0 && *image && *format == mlt_image_yuv422 )
+       if (  error == 0 && *image )
        {
                int h = *height;
                int w = *width;