1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avconv: don't segfault on 0 input files.

This commit is contained in:
Anton Khirnov 2011-08-16 11:32:57 +02:00
parent f1f298cd32
commit 5759cce70d

View File

@ -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)