Browse Source

Print an error when MAX_STREAMS is reached.

Originally committed as revision 23413 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Michael Niedermayer 15 years ago
parent
commit
b742a12ee2
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/utils.c

+ 3
- 1
libavformat/utils.c View File

@@ -2467,8 +2467,10 @@ AVStream *av_new_stream(AVFormatContext *s, int id)
AVStream *st;
int i;

if (s->nb_streams >= MAX_STREAMS)
if (s->nb_streams >= MAX_STREAMS){
av_log(s, AV_LOG_ERROR, "Too many streams\n");
return NULL;
}

st = av_mallocz(sizeof(AVStream));
if (!st)


Loading…
Cancel
Save