[FFmpeg-cvslog] avconv: don't segfault on 0 input files.
Anton Khirnov
git at videolan.org
Wed Aug 17 14:42:48 CEST 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Aug 16 11:32:57 2011 +0200| [5759cce70db528c4feef48e480747e690a500b48] | committer: Anton Khirnov
avconv: don't segfault on 0 input files.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5759cce70db528c4feef48e480747e690a500b48
---
avconv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/avconv.c b/avconv.c
index 7be6804..24f6cd6 100644
--- a/avconv.c
+++ b/avconv.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list