summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-06-24 08:54:52 +0200
committerAnton Khirnov <anton@khirnov.net>2011-07-08 19:58:23 +0200
commit20f9f21fd49112c70c94dad015550f59ece5a0e9 (patch)
tree2188af21399037cdf0bd2d1a7b32897fa1e2587a
parent27e91f37f58d122f94d9d9b30c6355d2dd2b0e49 (diff)
downloadffmpeg-20f9f21fd49112c70c94dad015550f59ece5a0e9.tar.gz
ffmpeg: remove pointless if (nb_input_files)
It's required to be non-zero since cc58300e30e7aea6acfecd72a04a3886b285cfd8
-rw-r--r--ffmpeg.c31
1 files changed, 14 insertions, 17 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 390785555a..9ae197acec 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3821,23 +3821,20 @@ static void opt_output_file(const char *filename)
use_subtitle = file_oformat->subtitle_codec != CODEC_ID_NONE || subtitle_stream_copy || subtitle_codec_name;
use_data = data_stream_copy || data_codec_name; /* XXX once generic data codec will be available add a ->data_codec reference and use it here */
- /* disable if no corresponding type found and at least one
- input file */
- if (nb_input_files > 0) {
- check_inputs(&input_has_video,
- &input_has_audio,
- &input_has_subtitle,
- &input_has_data);
-
- if (!input_has_video)
- use_video = 0;
- if (!input_has_audio)
- use_audio = 0;
- if (!input_has_subtitle)
- use_subtitle = 0;
- if (!input_has_data)
- use_data = 0;
- }
+ /* disable if no corresponding type found */
+ check_inputs(&input_has_video,
+ &input_has_audio,
+ &input_has_subtitle,
+ &input_has_data);
+
+ if (!input_has_video)
+ use_video = 0;
+ if (!input_has_audio)
+ use_audio = 0;
+ if (!input_has_subtitle)
+ use_subtitle = 0;
+ if (!input_has_data)
+ use_data = 0;
/* manual disable */
if (audio_disable) use_audio = 0;