summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-10-14 17:08:51 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-10-14 17:08:51 +0200
commitd790e488303f253eb52c9bc94e3739e900d01dfe (patch)
tree2dd8d5b68efbc459bebb3b8137960faa63d512ab
parent44453c09e46eb30a1316cac30027c7f6d53a6e6f (diff)
downloadffmpeg-d790e488303f253eb52c9bc94e3739e900d01dfe.tar.gz
avutil/audio_fifo: Use av_fifo_freep() and remove redundant if()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavutil/audio_fifo.c3
1 files changed, 1 insertions, 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);
}