diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-06-04 01:24:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-06-04 01:24:00 +0200 |
commit | bfd3b70ac3162f028bbfa5a8cd47d2715d49f77e (patch) | |
tree | d8d1ae34fe8f0164b9cbf37bc1d335649fc069d6 /ffmpeg.c | |
parent | 33af5335fd8e1b411bb1bdfad93b675033866c2c (diff) | |
download | ffmpeg-bfd3b70ac3162f028bbfa5a8cd47d2715d49f77e.tar.gz |
ffmpeg: fix segfault with too many output files
Fixes Ticket219
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3863,6 +3863,11 @@ static void opt_output_file(const char *filename) AVFormatParameters params, *ap = ¶ms; AVOutputFormat *file_oformat; + if(nb_output_files >= FF_ARRAY_ELEMS(output_files)){ + fprintf(stderr, "Too many output files\n"); + ffmpeg_exit(1); + } + if (!strcmp(filename, "-")) filename = "pipe:"; |