summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc_chain.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-02-04 12:04:18 +0200
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-04 11:39:55 -0500
commitb22dbb291d41e9fb038884bcebad2394c501cbaf (patch)
treeba3ca832fc842b2e891715513e6ed63d9f16a3c4 /libavformat/rtpenc_chain.c
parentff1974897778942180c1d4f95b0b7b45a4fbbc02 (diff)
Use avformat_free_context for cleaning up muxers
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/rtpenc_chain.c')
-rw-r--r--libavformat/rtpenc_chain.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavformat/rtpenc_chain.c b/libavformat/rtpenc_chain.c
index 09b4ebd7c3..e1f200ca08 100644
--- a/libavformat/rtpenc_chain.c
+++ b/libavformat/rtpenc_chain.c
@@ -66,11 +66,7 @@ AVFormatContext *ff_rtp_chain_mux_open(AVFormatContext *s, AVStream *st,
url_close_dyn_buf(rtpctx->pb, &ptr);
av_free(ptr);
}
- 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);
return NULL;
}