From: Aurelien Jacobs Date: Fri, 1 Oct 2010 21:56:09 +0000 (+0000) Subject: ffmpeg: replace MAX_STREAMS by an arbitrary sanity check X-Git-Tag: v0.7b2~2344 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=84fd51e5ad41147c12d63471f98fb68361258646;p=coroid%2Flibav_saccubus.git ffmpeg: replace MAX_STREAMS by an arbitrary sanity check Originally committed as revision 25304 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/ffmpeg.c b/ffmpeg.c index bdd7f3ef5..9b9978643 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];