Increase the maximum number of supported stream mappings in ffmpeg.c.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 3 Aug 2008 13:38:31 +0000 (13:38 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 3 Aug 2008 13:38:31 +0000 (13:38 +0000)
The new value is given by maximum_files_nb * maximum_streams_per_file_nb,
which looks also more correct in respect to the previous value.

Originally committed as revision 14520 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index 91485ae..850778d 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -92,7 +92,7 @@ static int nb_input_files = 0;
 static AVFormatContext *output_files[MAX_FILES];
 static int nb_output_files = 0;
 
-static AVStreamMap stream_maps[MAX_FILES];
+static AVStreamMap stream_maps[MAX_FILES*MAX_STREAMS];
 static int nb_stream_maps;
 
 static AVMetaDataMap meta_data_maps[MAX_FILES];