aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegtsenc.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/mpegtsenc.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/mpegtsenc.c')
-rw-r--r--libavformat/mpegtsenc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index a56ca0eaa5..11dcf9ce49 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -30,6 +30,7 @@
#include "libavcodec/internal.h"
#include "avformat.h"
+#include "avio_internal.h"
#include "internal.h"
#include "mpegts.h"
@@ -1327,9 +1328,7 @@ static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
ret = av_write_frame(ts_st->amux, &pkt2);
if (ret < 0) {
- avio_close_dyn_buf(ts_st->amux->pb, &data);
- ts_st->amux->pb = NULL;
- av_free(data);
+ ffio_free_dyn_buf(&ts_st->amux->pb);
return ret;
}
size = avio_close_dyn_buf(ts_st->amux->pb, &data);