Browse Source

ffserver: use a local MAX_STREAMS limit

Originally committed as revision 25495 to svn://svn.ffmpeg.org/ffmpeg/trunk
Aurelien Jacobs 14 years ago
parent
commit
aff8810172
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ffserver.c

+ 4 - 0
ffserver.c

@@ -92,6 +92,10 @@ static const char *http_state[] = {
     "RTSP_SEND_PACKET",
 };
 
+#if !FF_API_MAX_STREAMS
+#define MAX_STREAMS 20
+#endif
+
 #define IOBUFFER_INIT_SIZE 8192
 
 /* timeouts are in ms */