[FFmpeg-cvslog] yadif: correct strides in filter_edges_16bit

James Darnley git at videolan.org
Wed May 15 09:47:46 CEST 2013


ffmpeg | branch: master | James Darnley <james.darnley at gmail.com> | Fri Mar 15 16:37:33 2013 +0100| [d10499a32ab3f3d4d458abfc4ab41c0d746e4eee] | committer: Anton Khirnov

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 at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d10499a32ab3f3d4d458abfc4ab41c0d746e4eee
---

 libavfilter/vf_yadif.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index 076ad41..2b89048 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)
 



More information about the ffmpeg-cvslog mailing list