Commit 1aa4fc1e authored by James Almer's avatar James Almer

avfilter/avf_showfreqs: free input frame after using it

Fixes ticket #8336.
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 4447aeaa
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment