aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-08-30 04:22:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-08-30 17:57:59 +0200
commit7357f6e6787958a2b827c397ae46af12e55a2a55 (patch)
tree77ca405c31b803e840830deb1c47d90cc1f54969 /ffmpeg.c
parent6e675b504a67345b48fe96ae07c32e96cc24eb71 (diff)
downloadffmpeg-7357f6e6787958a2b827c397ae46af12e55a2a55.tar.gz
ffmpeg: don't segfault on 0 input files.
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 9859b9bf36..274bdc64b0 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3863,7 +3863,7 @@ static int opt_output_file(const char *opt, const char *filename)
}
/* copy global metadata by default */
- if (metadata_global_autocopy)
+ if (metadata_global_autocopy && nb_input_files)
av_dict_copy(&oc->metadata, input_files[0].ctx->metadata,
AV_DICT_DONT_OVERWRITE);
if (metadata_streams_autocopy)