diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-08-30 04:22:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-08-30 17:57:59 +0200 |
commit | 7357f6e6787958a2b827c397ae46af12e55a2a55 (patch) | |
tree | 77ca405c31b803e840830deb1c47d90cc1f54969 /ffmpeg.c | |
parent | 6e675b504a67345b48fe96ae07c32e96cc24eb71 (diff) | |
download | ffmpeg-7357f6e6787958a2b827c397ae46af12e55a2a55.tar.gz |
ffmpeg: don't segfault on 0 input files.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |