mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avf_showwaves: fix null pointer dereference
Found-by: durandal_1707 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
03a82d588b
commit
e4eebc2da9
1 changed files with 1 additions and 0 deletions
|
|
@ -220,6 +220,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples)
|
||||||
}
|
}
|
||||||
if (showwaves->buf_idx == showwaves->w)
|
if (showwaves->buf_idx == showwaves->w)
|
||||||
push_frame(outlink);
|
push_frame(outlink);
|
||||||
|
outpicref = showwaves->outpicref;
|
||||||
}
|
}
|
||||||
|
|
||||||
avfilter_unref_buffer(insamples);
|
avfilter_unref_buffer(insamples);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue