changeset 6069:f3000d7fad52 libavformat

Print an error when MAX_STREAMS is reached.
author michael
date Tue, 01 Jun 2010 19:49:21 +0000
parents 7fdda2416684
children ac73cfb210dc
files utils.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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)