projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b99142
)
Print an error when MAX_STREAMS is reached.
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 1 Jun 2010 19:49:21 +0000
(19:49 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 1 Jun 2010 19:49:21 +0000
(19:49 +0000)
Originally committed as revision 23413 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
blame
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
bd8c6bc
..
3350bef
100644
(file)
--- 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)