[FFmpeg-devel] [PATCH 7/7] ffmpeg: replace MAX_STREAMS by an arbitrary sanity check value
Aurélien Jacobs
aurel
Fri Aug 13 20:24:20 CEST 2010
From: Aurelien Jacobs <aurel at gnuage.org>
---
ffmpeg.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 3674836..c03542a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -102,6 +102,9 @@ typedef struct AVMetaDataMap {
static const OptionDef options[];
#define MAX_FILES 100
+#if LIBAVFORMAT_VERSION_MAJOR >= 53
+#define MAX_STREAMS 1024 /* arbitrary sanity check value */
+#endif
static const char *last_asked_format = NULL;
static AVFormatContext *input_files[MAX_FILES];
--
1.7.1
More information about the ffmpeg-devel
mailing list