Commit d790e488 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 44453c09
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment