diff options
author | Martin Storsjö | 2011-02-04 12:04:18 +0200 |
---|---|---|
committer | Michael Niedermayer | 2011-02-06 20:31:45 +0100 |
commit | 42f97696aec6bab0f11704c4de439e5364522ab6 (patch) | |
tree | c5fe50d136d780bb677d27b3c597ca6697f0f44a /libavformat/sapenc.c | |
parent | 8cf2d3d3d71d14169183eaf34faad924120b53d6 (diff) |
Use avformat_free_context for cleaning up muxers
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit b22dbb291d41e9fb038884bcebad2394c501cbaf)
Diffstat (limited to 'libavformat/sapenc.c')
-rw-r--r-- | libavformat/sapenc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c index 634f033d50..9bbacef680 100644 --- a/libavformat/sapenc.c +++ b/libavformat/sapenc.c @@ -46,13 +46,7 @@ static int sap_write_close(AVFormatContext *s) continue; av_write_trailer(rtpctx); url_fclose(rtpctx->pb); - av_metadata_free(&rtpctx->streams[0]->metadata); - av_metadata_free(&rtpctx->metadata); - av_free(rtpctx->streams[0]->codec->extradata); - av_free(rtpctx->streams[0]->codec); - av_free(rtpctx->streams[0]->info); - av_free(rtpctx->streams[0]); - av_free(rtpctx); + avformat_free_context(rtpctx); s->streams[i]->priv_data = NULL; } |