aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-08-03 11:45:02 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-08-03 11:45:33 +0200
commit08d2cee49c323715b66df0e4ff45ec0e07aaea7b (patch)
tree8b05016616664ebce0793243b7b778924b5305a1 /ffmpeg.c
parenteb29649cad7c133e68f0194b9b913f039a7c623f (diff)
downloadffmpeg-08d2cee49c323715b66df0e4ff45ec0e07aaea7b.tar.gz
Fix -loop_input.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 2a1ee79bad..957abed388 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3347,6 +3347,11 @@ static int opt_input_file(const char *opt, const char *filename)
find_codec_or_die(subtitle_codec_name, AVMEDIA_TYPE_SUBTITLE, 0);
ic->flags |= AVFMT_FLAG_NONBLOCK;
+ if (loop_input) {
+ av_log(NULL, AV_LOG_WARNING, "-loop_input is deprecated, use -loop 1\n");
+ ic->loop_input = loop_input;
+ }
+
/* open the input file with generic libav function */
err = avformat_open_input(&ic, filename, file_iformat, &format_opts);
if (err < 0) {
@@ -3379,11 +3384,6 @@ static int opt_input_file(const char *opt, const char *filename)
opt_programid=0;
}
- if (loop_input) {
- av_log(NULL, AV_LOG_WARNING, "-loop_input is deprecated, use -loop 1\n");
- ic->loop_input = loop_input;
- }
-
/* Set AVCodecContext options for avformat_find_stream_info */
opts = setup_find_stream_info_opts(ic, codec_opts);
orig_nb_streams = ic->nb_streams;