Mercurial > libavformat.hg
diff utils.c @ 6069:f3000d7fad52 libavformat
Print an error when MAX_STREAMS is reached.
author | michael |
---|---|
date | Tue, 01 Jun 2010 19:49:21 +0000 |
parents | 92871def02f1 |
children | 72faba69143f |
line wrap: on
line diff
--- a/utils.c Tue Jun 01 07:46:23 2010 +0000 +++ b/utils.c Tue Jun 01 19:49:21 2010 +0000 @@ -2467,8 +2467,10 @@ 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)