OSDN Git Service

yadif: redesign first and last 2 lines handling.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Aug 2012 22:06:31 +0000 (00:06 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Aug 2012 22:08:34 +0000 (00:08 +0200)
commit2f7e8dcf45f11df94f47acbe6825cc93514ea59b
tree6db7c39f4ef9fe2483c62fd83176a534773e2f6f
parent9f088a1ed4d34f0cf4244a4b80960af9e8f23dfc
yadif: redesign first and last 2 lines handling.

The previous code dependent on the input buffer matching the
buffer that has been provided by yadifs get_buffer.
The API does in now way gurantee this though its often true.
This fixes some out of array reads.
The regression test checksums change due to "out of picture" values
being initialized differently.
There should be no visual difference in the filters output

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_yadif.c
libavfilter/yadif.h
tests/ref/fate/filter-yadif-mode0
tests/ref/fate/filter-yadif-mode1