aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-10-26 01:21:56 -0300
committerJames Almer <jamrial@gmail.com>2019-10-26 10:16:02 -0300
commit1aa4fc1ec204fabed5c40873b86751976167272f (patch)
tree9d6428421631a0a9532bb6459ed38eab2e2e8adb
parent4447aeaac2be3c825987cc4ea9e15c08b4bd22b8 (diff)
downloadffmpeg-1aa4fc1ec204fabed5c40873b86751976167272f.tar.gz
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>
-rw-r--r--libavfilter/avf_showfreqs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/avf_showfreqs.c b/libavfilter/avf_showfreqs.c
index c44ac564ac..645754ded3 100644
--- a/libavfilter/avf_showfreqs.c
+++ b/libavfilter/avf_showfreqs.c
@@ -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) {