2.6/2.7 Yadif bobbing no longer doubles video duration

Started by KoolAidMan, January 12, 2013, 06:03:06 AM

Previous topic - Next topic

KoolAidMan

This patch fixes a bug which doubled the video duration, causing the video to complete at 50% when the Yadif deinterlacing filter was being used in bob mode.


Index: avidemux_plugins/ADM_videoFilters6/yadif/ADM_vidYadif.cpp
===================================================================
--- avidemux_plugins/ADM_videoFilters6/yadif/ADM_vidYadif.cpp (revision 8383)
+++ avidemux_plugins/ADM_videoFilters6/yadif/ADM_vidYadif.cpp (working copy)
@@ -118,7 +118,6 @@
    memcpy(&info,previousFilter->getInfo(),sizeof(info));
   if(configuration.mode &1 ) // Bob
   {
-    info.totalDuration*=2;
     info.frameIncrement/=2;
   }
}