From 7357f6e6787958a2b827c397ae46af12e55a2a55 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 30 Aug 2011 04:22:06 +0200 Subject: [PATCH] ffmpeg: don't segfault on 0 input files. --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)