diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-08-16 11:32:57 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-08-16 20:24:20 +0200 |
commit | 5759cce70db528c4feef48e480747e690a500b48 (patch) | |
tree | 78165560490cfb87a296c2bcf9bfd18fb1830546 | |
parent | f1f298cd32b18bb910ff045df327ccb139628db7 (diff) | |
download | ffmpeg-5759cce70db528c4feef48e480747e690a500b48.tar.gz |
avconv: don't segfault on 0 input files.
-rw-r--r-- | avconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3656,7 +3656,7 @@ static void opt_output_file(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) |