summaryrefslogtreecommitdiff
path: root/avconv.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 /avconv.c
parent526604545fb1cc0c11af356fbffd5cddf8cdc95f (diff)
downloadffmpeg-cd3716b9aae7e141e7b4faf9783131809f40991f.tar.gz
Replace all uses of av_close_input_file() with avformat_close_input().
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avconv.c b/avconv.c
index 91549a24fd..90ed00d935 100644
--- a/avconv.c
+++ b/avconv.c
@@ -523,7 +523,7 @@ void exit_program(int ret)
av_dict_free(&output_files[i].opts);
}
for(i=0;i<nb_input_files;i++) {
- av_close_input_file(input_files[i].ctx);
+ avformat_close_input(&input_files[i].ctx);
}
for (i = 0; i < nb_input_streams; i++) {
av_freep(&input_streams[i].decoded_frame);
@@ -3023,7 +3023,7 @@ static int opt_input_file(OptionsContext *o, const char *opt, const char *filena
ret = avformat_find_stream_info(ic, opts);
if (ret < 0) {
av_log(NULL, AV_LOG_FATAL, "%s: could not find codec parameters\n", filename);
- av_close_input_file(ic);
+ avformat_close_input(&ic);
exit_program(1);
}