You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
Print an error when MAX_STREAMS is reached.
Originally committed as revision 23413 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user