Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-10 02:06:31 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-08-10 02:08:34 +0400
commit2f7e8dcf45f11df94f47acbe6825cc93514ea59b (patch)
tree6db7c39f4ef9fe2483c62fd83176a534773e2f6f /libavfilter/yadif.h
parent9f088a1ed4d34f0cf4244a4b80960af9e8f23dfc (diff)
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.h2
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);