summaryrefslogtreecommitdiff
path: root/avplay.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 /avplay.c
parent526604545fb1cc0c11af356fbffd5cddf8cdc95f (diff)
downloadffmpeg-cd3716b9aae7e141e7b4faf9783131809f40991f.tar.gz
Replace all uses of av_close_input_file() with avformat_close_input().
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/avplay.c b/avplay.c
index fd9774ef32..f90899c57b 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2593,8 +2593,7 @@ static int decode_thread(void *arg)
if (is->subtitle_stream >= 0)
stream_component_close(is, is->subtitle_stream);
if (is->ic) {
- av_close_input_file(is->ic);
- is->ic = NULL; /* safety */
+ avformat_close_input(&is->ic);
}
avio_set_interrupt_cb(NULL);