diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-03 12:25:54 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-19 18:28:38 +0200 |
commit | 761ad429680637411882552921a9d5acb6aff59e (patch) | |
tree | ba03954b8cfd4196ff5d6016d292a0d203faaf87 /libavformat/utils.c | |
parent | aad2f2f477d6804f5f79ccce55b3d7f54b00f715 (diff) | |
download | ffmpeg-streaming-761ad429680637411882552921a9d5acb6aff59e.zip ffmpeg-streaming-761ad429680637411882552921a9d5acb6aff59e.tar.gz |
lavf: remove FF_API_MAX_STREAMS cruft
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 6b38e66..a133617 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2660,13 +2660,6 @@ AVStream *av_new_stream(AVFormatContext *s, int id) { AVStream *st; int i; - -#if FF_API_MAX_STREAMS - if (s->nb_streams >= MAX_STREAMS){ - av_log(s, AV_LOG_ERROR, "Too many streams\n"); - return NULL; - } -#else AVStream **streams; if (s->nb_streams >= INT_MAX/sizeof(*streams)) @@ -2675,7 +2668,6 @@ AVStream *av_new_stream(AVFormatContext *s, int id) if (!streams) return NULL; s->streams = streams; -#endif st = av_mallocz(sizeof(AVStream)); if (!st) |