From 8e32b1f0963d01d4f5d4803eb721f162e0d58d9a Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 24 Feb 2015 14:07:54 +0200 Subject: libavformat: Use ffio_free_dyn_buf where applicable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavformat/dashenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavformat/dashenc.c') diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index d715654ca7..25766155bf 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -155,8 +155,7 @@ static void set_codec_str(AVFormatContext *s, AVCodecContext *codec, if (avio_open_dyn_buf(&pb) < 0) return; if (ff_isom_write_avcc(pb, extradata, extradata_size) < 0) { - avio_close_dyn_buf(pb, &tmpbuf); - av_free(tmpbuf); + ffio_free_dyn_buf(&pb); return; } extradata_size = avio_close_dyn_buf(pb, &extradata); -- cgit v1.2.3