summaryrefslogtreecommitdiff
path: root/libavfilter/vf_yadif.c
diff options
context:
space:
mode:
authorJames Darnley <james.darnley@gmail.com>2013-03-15 16:37:33 +0100
committerAnton Khirnov <anton@khirnov.net>2013-05-14 09:24:13 +0200
commitd10499a32ab3f3d4d458abfc4ab41c0d746e4eee (patch)
tree580fabe22813dcfbd15c04bea3c1ee4105ec1cb4 /libavfilter/vf_yadif.c
parentb0ef0ae77608a5e3d2ba68af503e8b1277a215d3 (diff)
yadif: correct strides in filter_edges_16bit
The C code treats the data as arrays of uint16_t so strides must not be in bytes but in pixels. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter/vf_yadif.c')
-rw-r--r--libavfilter/vf_yadif.c2
1 files changed, 2 insertions, 0 deletions
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)