Skip to content
Snippets Groups Projects
Commit bfd3b70a authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

ffmpeg: fix segfault with too many output files


Fixes Ticket219

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 33af5335
No related branches found
No related tags found
No related merge requests found
......@@ -3863,6 +3863,11 @@ static void opt_output_file(const char *filename)
AVFormatParameters params, *ap = &params;
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:";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment