avfilter/avf_showfreqs: free input frame after using it
Fixes ticket #8336. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
4447aeaac2
commit
1aa4fc1ec2
1 changed files with 1 additions and 0 deletions
|
|
@ -475,6 +475,7 @@ static int activate(AVFilterContext *ctx)
|
|||
av_audio_fifo_write(s->fifo, (void **)in->extended_data, in->nb_samples);
|
||||
if (s->pts == AV_NOPTS_VALUE)
|
||||
s->pts = in->pts;
|
||||
av_frame_free(&in);
|
||||
}
|
||||
|
||||
if (av_audio_fifo_size(s->fifo) >= s->win_size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue