[FFmpeg-devel] [PATCH] yadif: correct strides in filter_edges_16bit

James Darnley james.darnley at gmail.com
Fri Mar 15 16:37:33 CET 2013


The C code treats the data as arrays of uint16_t so strides must not
be in bytes but in pixels.

10l on my part.  I had noticed this but completely forgot about it.
---
 libavfilter/vf_yadif.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index ab39e28..1ec51df 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -157,6 +157,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)
 
-- 
1.7.9



More information about the ffmpeg-devel mailing list