]> git.sesse.net Git - mlt/blobdiff - src/modules/oldfilm/filter_lines.c
Massive refactoring of image conversion.
[mlt] / src / modules / oldfilm / filter_lines.c
index 7d3e415ee16c57035e954f055406c9ec761ad4d0..bd77c2397d7e56ec26b2952a117deefd3c0045cf 100644 (file)
@@ -28,9 +28,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;