From d790e488303f253eb52c9bc94e3739e900d01dfe Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 14 Oct 2016 17:08:51 +0200 Subject: [PATCH] avutil/audio_fifo: Use av_fifo_freep() and remove redundant if() Signed-off-by: Michael Niedermayer --- libavutil/audio_fifo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavutil/audio_fifo.c b/libavutil/audio_fifo.c index e4d38e0524..de187104e6 100644 --- a/libavutil/audio_fifo.c +++ b/libavutil/audio_fifo.c @@ -48,8 +48,7 @@ void av_audio_fifo_free(AVAudioFifo *af) if (af->buf) { int i; for (i = 0; i < af->nb_buffers; i++) { - if (af->buf[i]) - av_fifo_free(af->buf[i]); + av_fifo_freep(&af->buf[i]); } av_freep(&af->buf); }