You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-03 16:24:53 +02:00
avfilter/avf_showfreqs: fix possible null pointer dereference
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -459,8 +459,10 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||
|
||||
av_fft_end(s->fft);
|
||||
for (i = 0; i < s->nb_channels; i++) {
|
||||
av_freep(&s->fft_data[i]);
|
||||
av_freep(&s->avg_data[i]);
|
||||
if (s->fft_data)
|
||||
av_freep(&s->fft_data[i]);
|
||||
if (s->avg_data)
|
||||
av_freep(&s->avg_data[i]);
|
||||
}
|
||||
av_freep(&s->fft_data);
|
||||
av_freep(&s->avg_data);
|
||||
|
||||
Reference in New Issue
Block a user