summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_asf.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-12-11 10:38:28 +0100
committerAnton Khirnov <anton@khirnov.net>2011-12-12 20:34:38 +0100
commitcd3716b9aae7e141e7b4faf9783131809f40991f (patch)
tree242d19f2239d299454d57879582d1ef0f9fe44ca /libavformat/rtpdec_asf.c
parent526604545fb1cc0c11af356fbffd5cddf8cdc95f (diff)
Replace all uses of av_close_input_file() with avformat_close_input().
Diffstat (limited to 'libavformat/rtpdec_asf.c')
-rw-r--r--libavformat/rtpdec_asf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c
index 6a8472844c..483b196d62 100644
--- a/libavformat/rtpdec_asf.c
+++ b/libavformat/rtpdec_asf.c
@@ -108,8 +108,7 @@ int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p)
"Failed to fix invalid RTSP-MS/ASF min_pktsize\n");
init_packetizer(&pb, buf, len);
if (rt->asf_ctx) {
- av_close_input_file(rt->asf_ctx);
- rt->asf_ctx = NULL;
+ avformat_close_input(&rt->asf_ctx);
}
if (!(rt->asf_ctx = avformat_alloc_context()))
return AVERROR(ENOMEM);