]> git.sesse.net Git - mlt/commitdiff
Fix previous optimization commit on deinterlace.
authorDan Dennedy <dan@dennedy.org>
Sat, 4 Sep 2010 07:01:29 +0000 (00:01 -0700)
committerDan Dennedy <dan@dennedy.org>
Sat, 4 Sep 2010 07:01:29 +0000 (00:01 -0700)
Need to check the progressive property on the frame whose image we just
fetched, not the upcoming one!

src/modules/xine/filter_deinterlace.c

index eac2a84b59f812a621323efd42d2b9730dffc651..1e3f4a83a97d8d476ae2b0c4c3aa7481e4b78f9e 100644 (file)
@@ -56,7 +56,7 @@ int deinterlace_yadif( mlt_frame frame, mlt_filter filter, uint8_t **image, mlt_
 
        // Check that we aren't already progressive
        if ( !error && previous_image  && *format == mlt_image_yuv422 &&
-                !mlt_properties_get_int( MLT_FRAME_PROPERTIES( frame ), "progressive" ) )
+                !mlt_properties_get_int( MLT_FRAME_PROPERTIES( previous_frame ), "progressive" ) )
        {
                // Get the current frame's image
                error = mlt_frame_get_image( frame, image, format, width, height, 0 );