]> git.sesse.net Git - ffmpeg/blobdiff - ffmpeg.c
ffmpeg: replace MAX_STREAMS by an arbitrary sanity check
[ffmpeg] / ffmpeg.c
index bdd7f3ef54a89d94d520ab496acaa55ff78fc927..9b99786431b1d61538fcbcc57d2deca8f709ee98 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -103,6 +103,9 @@ typedef struct AVMetaDataMap {
 static const OptionDef options[];
 
 #define MAX_FILES 100
+#if !FF_API_MAX_STREAMS
+#define MAX_STREAMS 1024    /* arbitrary sanity check value */
+#endif
 
 static const char *last_asked_format = NULL;
 static AVFormatContext *input_files[MAX_FILES];