From e4eebc2da9da886e1bdf87d29e9a4c5b55111036 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 21 Jan 2013 23:00:20 +0100 Subject: [PATCH] avf_showwaves: fix null pointer dereference Found-by: durandal_1707 Signed-off-by: Michael Niedermayer --- libavfilter/avf_showwaves.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c index 30a8e1e62fa..3e5f39f3c94 100644 --- a/libavfilter/avf_showwaves.c +++ b/libavfilter/avf_showwaves.c @@ -220,6 +220,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples) } if (showwaves->buf_idx == showwaves->w) push_frame(outlink); + outpicref = showwaves->outpicref; } avfilter_unref_buffer(insamples); -- 2.39.2