[FFmpeg-cvslog] avfilter/avf_showfreqs: free input frame after using it
James Almer
git at videolan.org
Sat Oct 26 16:16:50 EEST 2019
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Oct 26 01:21:56 2019 -0300| [1aa4fc1ec204fabed5c40873b86751976167272f] | committer: James Almer
avfilter/avf_showfreqs: free input frame after using it
Fixes ticket #8336.
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1aa4fc1ec204fabed5c40873b86751976167272f
---
libavfilter/avf_showfreqs.c | 1 +
1 file changed, 1 insertion(+)
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) {
More information about the ffmpeg-cvslog
mailing list