Mercurial > libavformat.hg
changeset 5804:9f349253996d libavformat
In mpegts muxer, free adts context and temporary data
author | bcoudurier |
---|---|
date | Wed, 10 Mar 2010 09:20:32 +0000 |
parents | 405bb9032df6 |
children | ee47b525644c |
files | mpegtsenc.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegtsenc.c Wed Mar 10 09:19:14 2010 +0000 +++ b/mpegtsenc.c Wed Mar 10 09:20:32 2010 +0000 @@ -869,6 +869,8 @@ memcpy(ts_st->payload + ts_st->payload_index, buf, size); ts_st->payload_index += size; + av_free(data); + return 0; } @@ -888,6 +890,7 @@ 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);