]> granicus.if.org Git - handbrake/commitdiff
decomb: fix decomb check
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 16 Feb 2016 22:41:41 +0000 (15:41 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 16 Feb 2016 22:42:37 +0000 (15:42 -0700)
Only the last segment's results were being checked!

libhb/decomb.c

index 165ee237a96454a54e516f9a9441656989798f41..b624031b481e2d6c7c28cee82f5783ffbb37d45e 100644 (file)
@@ -809,7 +809,6 @@ static void detect_combed_segment( hb_filter_private_t * pv, int segment_start,
        AviSynth and tritical's IsCombedT and
        IsCombedTIVTC plugins.                       */
 
-
     /* Comb scoring algorithm */
     int spatial_metric  = pv->spatial_metric;
     /* Motion threshold */
@@ -2181,7 +2180,7 @@ static int hb_decomb_init( hb_filter_object_t * filter,
     decomb_prev_thread_args = NULL;
     for( ii = 0; ii < pv->comb_check_nthreads; ii++ )
     {
-        decomb_thread_arg_t *thread_args, *decomb_prev_thread_args = NULL;
+        decomb_thread_arg_t *thread_args;
 
         thread_args = taskset_thread_args( &pv->decomb_check_taskset, ii );
         thread_args->pv = pv;