aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dashenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-25 00:48:46 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-25 00:48:50 +0100
commit7f03f75ce72fe1c6adfc63f621eeb69cde13769a (patch)
tree7b20dea793e95c3fe5ab4bccbedd2e83e504f4d3 /libavformat/dashenc.c
parent7d9b06eb179fb0d032c530d21182dce3fe0a7671 (diff)
parent8e32b1f0963d01d4f5d4803eb721f162e0d58d9a (diff)
downloadffmpeg-7f03f75ce72fe1c6adfc63f621eeb69cde13769a.tar.gz
Merge commit '8e32b1f0963d01d4f5d4803eb721f162e0d58d9a'
* commit '8e32b1f0963d01d4f5d4803eb721f162e0d58d9a': libavformat: Use ffio_free_dyn_buf where applicable Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r--libavformat/dashenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 8b6be7133e..98036d3fec 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);