aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-06-01 19:49:21 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-06-01 19:49:21 +0000
commitb742a12ee2f2428616951dcb3e300a45d1171cd3 (patch)
tree68ddc4b56e3527bcb75a6df949954dda0a34a0fa /libavformat/utils.c
parent2b991422f8fd6865bd5d0069a3f91827a4e6016e (diff)
downloadffmpeg-b742a12ee2f2428616951dcb3e300a45d1171cd3.tar.gz
Print an error when MAX_STREAMS is reached.
Originally committed as revision 23413 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index bd8c6bc37d..3350bef2cc 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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)