[FFmpeg-devel] [PATCH] lavfi/tinterlace: set inlink->cur to NULL, since it is stored internally
Stefano Sabatini
stefasab at gmail.com
Thu Sep 6 00:45:12 CEST 2012
On date Tuesday 2012-09-04 23:20:37 +0200, Stefano Sabatini encoded:
> 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;
> }
Applied.
--
FFmpeg = Frightening & Fantastic MultiPurpose Enhancing Guide
More information about the ffmpeg-devel
mailing list