[FFmpeg-devel] [PATCH] lavfi/tinterlace: set inlink->cur to NULL, since it is stored internally
Stefano Sabatini
stefasab at gmail.com
Tue Sep 4 23:20:37 CEST 2012
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.
---
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 bbc6442..bb5cdc8 100644
--- a/libavfilter/vf_tinterlace.c
+++ b/libavfilter/vf_tinterlace.c
@@ -207,6 +207,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;
}
--
1.7.5.4
More information about the ffmpeg-devel
mailing list