aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2010-10-01 21:56:09 +0000
committerAurelien Jacobs <aurel@gnuage.org>2010-10-01 21:56:09 +0000
commit84fd51e5ad41147c12d63471f98fb68361258646 (patch)
tree06d90a55d2053a11abbc465ae58d59be7cb6b976
parent620a67d56ae5e31fdc1ddeb694c23889061ae522 (diff)
downloadffmpeg-84fd51e5ad41147c12d63471f98fb68361258646.tar.gz
ffmpeg: replace MAX_STREAMS by an arbitrary sanity check
Originally committed as revision 25304 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index bdd7f3ef54..9b99786431 100644
--- 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];