[FFmpeg-cvslog] avutil/audio_fifo: Use av_fifo_freep() and remove redundant if()

Michael Niedermayer git at videolan.org
Fri Oct 14 18:26:40 EEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Oct 14 17:08:51 2016 +0200| [d790e488303f253eb52c9bc94e3739e900d01dfe] | committer: Michael Niedermayer

avutil/audio_fifo: Use av_fifo_freep() and remove redundant if()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d790e488303f253eb52c9bc94e3739e900d01dfe
---

 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 e4d38e0..de18710 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);
         }



More information about the ffmpeg-cvslog mailing list