aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2010-12-27 07:46:44 +0000
committerAnton Khirnov <wyskas@gmail.com>2010-12-27 07:46:44 +0000
commitbb62d5c1f06e7ff0446abb9cbe6a102cdbd38cc0 (patch)
treec0b31fbd2963a2cefa446c54b011b8e49ca550d9 /ffmpeg.c
parent18f1add31c93940359086465825adada99bd6bc9 (diff)
downloadffmpeg-bb62d5c1f06e7ff0446abb9cbe6a102cdbd38cc0.tar.gz
Allow output formats without any streams.
Required for future metadata format. Originally committed as revision 26100 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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;i<nb_output_files;i++) {
os = output_files[i];
- if (!os->nb_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);