diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-09-04 20:36:02 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-09-06 00:40:01 +0200 |
commit | fd5293d216316752fd34dcb29051e748f076e5fb (patch) | |
tree | 89e074acb296893f46d532b57ab31fb6cbf0002d /libavfilter/vf_tinterlace.c | |
parent | 29e972f67c914d35417bc7368493d2617abdd26e (diff) | |
download | ffmpeg-fd5293d216316752fd34dcb29051e748f076e5fb.tar.gz |
lavfi/tinterlace: set inlink->cur to NULL, since it is stored internally
If not set to NULL, the reference is freed by ff_end_frame(), and later
accessed in end_frame() by the filter code, causing a crash.
Diffstat (limited to 'libavfilter/vf_tinterlace.c')
-rw-r--r-- | libavfilter/vf_tinterlace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c index 5b03b81bf1..6ec56741ea 100644 --- a/libavfilter/vf_tinterlace.c +++ b/libavfilter/vf_tinterlace.c @@ -206,6 +206,7 @@ static int start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) avfilter_unref_buffer(tinterlace->cur); tinterlace->cur = tinterlace->next; tinterlace->next = picref; + inlink->cur_buf = NULL; return 0; } |