Commit b742a12e authored by Michael Niedermayer's avatar Michael Niedermayer

Print an error when MAX_STREAMS is reached.

Originally committed as revision 23413 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2b991422
...@@ -2467,8 +2467,10 @@ AVStream *av_new_stream(AVFormatContext *s, int id) ...@@ -2467,8 +2467,10 @@ AVStream *av_new_stream(AVFormatContext *s, int id)
AVStream *st; AVStream *st;
int i; 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; return NULL;
}
st = av_mallocz(sizeof(AVStream)); st = av_mallocz(sizeof(AVStream));
if (!st) if (!st)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment