From bb62d5c1f06e7ff0446abb9cbe6a102cdbd38cc0 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 27 Dec 2010 07:46:44 +0000 Subject: Allow output formats without any streams. Required for future metadata format. Originally committed as revision 26100 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ffmpeg.c') diff --git a/ffmpeg.c b/ffmpeg.c index 71e5d3b693..94919814bc 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1990,7 +1990,7 @@ static int transcode(AVFormatContext **output_files, nb_ostreams = 0; for(i=0;inb_streams) { + if (!os->nb_streams && !(os->oformat->flags & AVFMT_NOSTREAMS)) { dump_format(output_files[i], i, output_files[i]->filename, 1); fprintf(stderr, "Output file #%d does not contain any stream\n", i); ret = AVERROR(EINVAL); -- cgit v1.2.3