Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-02-04 13:04:18 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-04 19:39:55 +0300
commitb22dbb291d41e9fb038884bcebad2394c501cbaf (patch)
treeba3ca832fc842b2e891715513e6ed63d9f16a3c4 /libavformat/rtsp.c
parentff1974897778942180c1d4f95b0b7b45a4fbbc02 (diff)
Use avformat_free_context for cleaning up muxers
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index d31e8eeae4..d3e88e9a5c 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -498,13 +498,7 @@ void ff_rtsp_undo_setup(AVFormatContext *s)
} else {
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);
} else if (rt->transport == RTSP_TRANSPORT_RDT && CONFIG_RTPDEC)
ff_rdt_parse_close(rtsp_st->transport_priv);
else if (CONFIG_RTPDEC)