[FFmpeg-cvslog] r23413 - trunk/libavformat/utils.c
michael
subversion
Tue Jun 1 21:49:22 CEST 2010
Author: michael
Date: Tue Jun 1 21:49:21 2010
New Revision: 23413
Log:
Print an error when MAX_STREAMS is reached.
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c Tue Jun 1 19:21:16 2010 (r23412)
+++ trunk/libavformat/utils.c Tue Jun 1 21:49:21 2010 (r23413)
@@ -2467,8 +2467,10 @@ AVStream *av_new_stream(AVFormatContext
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)
More information about the ffmpeg-cvslog
mailing list