mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-24 17:32:22 +08:00
ffmpeg: don't segfault on 0 input files.
This commit is contained in:
committed by
Michael Niedermayer
parent
6e675b504a
commit
7357f6e678
2
ffmpeg.c
2
ffmpeg.c
@@ -3863,7 +3863,7 @@ static int opt_output_file(const char *opt, const char *filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* copy global metadata by default */
|
/* 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_copy(&oc->metadata, input_files[0].ctx->metadata,
|
||||||
AV_DICT_DONT_OVERWRITE);
|
AV_DICT_DONT_OVERWRITE);
|
||||||
if (metadata_streams_autocopy)
|
if (metadata_streams_autocopy)
|
||||||
|
|||||||
Reference in New Issue
Block a user