From 64ed397635ef2666b0ca0c8d8c60a8bc44581d82 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 7 Feb 2013 18:31:45 +0100 Subject: vf_yadif: fix out-of line reads Some changes in the border pixels, visually indistinguishable. --- libavfilter/yadif.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavfilter/yadif.h') diff --git a/libavfilter/yadif.h b/libavfilter/yadif.h index e6f713b26c..18c8624f1f 100644 --- a/libavfilter/yadif.h +++ b/libavfilter/yadif.h @@ -50,9 +50,17 @@ typedef struct YADIFContext { AVFilterBufferRef *next; AVFilterBufferRef *prev; AVFilterBufferRef *out; + + /** + * Required alignment for filter_line + */ + int req_align; void (*filter_line)(void *dst, void *prev, void *cur, void *next, int w, int prefs, int mrefs, int parity, int mode); + void (*filter_edges)(void *dst, void *prev, void *cur, void *next, + int w, int prefs, int mrefs, int parity, int mode, + int l_edge); const AVPixFmtDescriptor *csp; int eof; -- cgit v1.2.3