Browse Source

avconv: don't segfault on 0 input files.

tags/n0.9
Anton Khirnov 14 years ago
parent
commit
5759cce70d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      avconv.c

+ 1
- 1
avconv.c 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)


Loading…
Cancel
Save