]> git.sesse.net Git - mlt/commitdiff
Fix a regression in the yadif deinterlace filter.
authorDan Dennedy <dan@dennedy.org>
Sun, 5 Sep 2010 07:05:08 +0000 (00:05 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 5 Sep 2010 07:05:08 +0000 (00:05 -0700)
Now that it properly checks if the previous frame progressive after getting its image, when progressive, it was returning the previous frame's image for the current frame!

src/modules/xine/filter_deinterlace.c

index 1e3f4a83a97d8d476ae2b0c4c3aa7481e4b78f9e..674255fb20983386d0ce549b4e81f00b5bd98869 100644 (file)
@@ -117,6 +117,11 @@ int deinterlace_yadif( mlt_frame frame, mlt_filter filter, uint8_t **image, mlt_
                        }
                }
        }
+       else
+       {
+               // Get the current frame's image
+               error = mlt_frame_get_image( frame, image, format, width, height, 0 );
+       }
        return error;
 }