Commit 3669eb0d authored by michael's avatar michael

Print an error when MAX_STREAMS is reached.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23413 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 20b50cf5
...@@ -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