avf_showwaves: fix null pointer dereference

Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-01-21 23:00:20 +01:00
parent 03a82d588b
commit e4eebc2da9

View File

@ -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);