summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
Diffstat (limited to 'libhb')
-rw-r--r--libhb/decomb.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/libhb/decomb.c b/libhb/decomb.c
index 74f0a7b35..166d72f16 100644
--- a/libhb/decomb.c
+++ b/libhb/decomb.c
@@ -2519,7 +2519,19 @@ static int hb_decomb_work( hb_filter_object_t * filter,
And when it's not, it's a progressive frame,
so mcdeint should be skipped...
*/
- yadif_filter( pv->pic_out.data, parity, tff, pv );
+ if ( duplicate )
+ {
+ // Don't perform comb detection again
+ // during bob duplicate processing
+ int spatial_metric_sav = pv->spatial_metric;
+ pv->spatial_metric = -1;
+ yadif_filter( pv->pic_out.data, parity, tff, pv );
+ pv->spatial_metric = spatial_metric_sav;
+ }
+ else
+ {
+ yadif_filter( pv->pic_out.data, parity, tff, pv );
+ }
/* Commented out code in the line below would skip mcdeint
on uncombed frames. Possibly a bad idea, since mcdeint