diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-07-15 15:51:39 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-07-19 09:38:28 +0200 |
commit | 1959351aecf09fc3e90208ff775f4849801dc13f (patch) | |
tree | 5f44b27d1eccbd91f5b1d3cba5b41c7106431f63 /avconv.c | |
parent | ab7b038906f3e40ed474676d8e3029902a2078f5 (diff) |
avconv: move the no streams failure to open_output_file()
It is a better place for it, there is no reason to wait until
transcode_init().
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -1679,16 +1679,6 @@ static int transcode_init(void) input_streams[j + ifile->ist_index]->start = av_gettime_relative(); } - /* output stream init */ - for (i = 0; i < nb_output_files; i++) { - oc = output_files[i]->ctx; - if (!oc->nb_streams && !(oc->oformat->flags & AVFMT_NOSTREAMS)) { - av_dump_format(oc, i, oc->filename, 1); - av_log(NULL, AV_LOG_ERROR, "Output file #%d does not contain any stream\n", i); - return AVERROR(EINVAL); - } - } - /* init complex filtergraphs */ for (i = 0; i < nb_filtergraphs; i++) if ((ret = avfilter_graph_config(filtergraphs[i]->graph, NULL)) < 0) |