提交 bffad70c 编写于 作者: C Clément Bœsch 提交者: Michael Niedermayer

Remove forgotten if (p) av_free(p) forms

Signed-off-by: NMans Rullgard <mans@mansr.com>
(cherry picked from commit 290849e2)
上级 b9004bd5
......@@ -126,7 +126,7 @@ AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int per
return ref;
fail:
if (ref && ref->audio)
if (ref)
av_free(ref->audio);
av_free(ref);
av_free(samples);
......
......@@ -1354,8 +1354,7 @@ static int avi_read_close(AVFormatContext *s)
}
}
if (avi->dv_demux)
av_free(avi->dv_demux);
av_free(avi->dv_demux);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册