diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c index 076ad41519..2b89048cde 100644 --- a/libavfilter/vf_yadif.c +++ b/libavfilter/vf_yadif.c @@ -158,6 +158,8 @@ static void filter_edges_16bit(void *dst1, void *prev1, void *cur1, void *next1, int x; uint16_t *prev2 = parity ? prev : cur ; uint16_t *next2 = parity ? cur : next; + mrefs /= 2; + prefs /= 2; FILTER(0, 3, 0)