diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-10 00:06:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-10 00:08:34 +0200 |
commit | 2f7e8dcf45f11df94f47acbe6825cc93514ea59b (patch) | |
tree | 6db7c39f4ef9fe2483c62fd83176a534773e2f6f /libavfilter/yadif.h | |
parent | 9f088a1ed4d34f0cf4244a4b80960af9e8f23dfc (diff) | |
download | ffmpeg-2f7e8dcf45f11df94f47acbe6825cc93514ea59b.tar.gz |
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>
Diffstat (limited to 'libavfilter/yadif.h')
-rw-r--r-- | libavfilter/yadif.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/yadif.h b/libavfilter/yadif.h index 4d3d818990..45bb1dc8ee 100644 --- a/libavfilter/yadif.h +++ b/libavfilter/yadif.h @@ -56,6 +56,8 @@ typedef struct { const AVPixFmtDescriptor *csp; int eof; + uint8_t *temp_line; + int temp_line_size; } YADIFContext; void ff_yadif_init_x86(YADIFContext *yadif); |