diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-10-14 17:08:51 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-10-14 17:08:51 +0200 |
commit | d790e488303f253eb52c9bc94e3739e900d01dfe (patch) | |
tree | 2dd8d5b68efbc459bebb3b8137960faa63d512ab /libavutil/audio_fifo.c | |
parent | 44453c09e46eb30a1316cac30027c7f6d53a6e6f (diff) | |
download | ffmpeg-d790e488303f253eb52c9bc94e3739e900d01dfe.tar.gz |
avutil/audio_fifo: Use av_fifo_freep() and remove redundant if()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/audio_fifo.c')
-rw-r--r-- | libavutil/audio_fifo.c | 3 |
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); } |