diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-03-10 09:20:32 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-03-10 09:20:32 +0000 |
commit | 83c2bc7abba62e1de16584b5adb82f77f2e9604e (patch) | |
tree | 21e9cddb064c4f5af0fe82fc794c61d7dd2d3b61 /libavformat | |
parent | e3433702aebae94ab59496812e1a79f6384ec9d9 (diff) | |
download | ffmpeg-83c2bc7abba62e1de16584b5adb82f77f2e9604e.tar.gz |
In mpegts muxer, free adts context and temporary data
Originally committed as revision 22428 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpegtsenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 0cd4f41d81..487a0c2fdf 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -869,6 +869,8 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt) memcpy(ts_st->payload + ts_st->payload_index, buf, size); ts_st->payload_index += size; + av_free(data); + return 0; } @@ -888,6 +890,7 @@ static int mpegts_write_end(AVFormatContext *s) mpegts_write_pes(s, st, ts_st->payload, ts_st->payload_index, ts_st->payload_pts, ts_st->payload_dts); } + av_freep(&ts_st->adts); } put_flush_packet(s->pb); |