diff rtsp.h @ 6357:b7ee8424b7e6 libavformat

get ride of MAX_STREAMS limit in RTSP
author aurel
date Mon, 09 Aug 2010 23:00:13 +0000
parents c709176da1ad
children f0669792a6bd
line wrap: on
line diff
--- a/rtsp.h	Mon Aug 09 22:58:54 2010 +0000
+++ b/rtsp.h	Mon Aug 09 23:00:13 2010 +0000
@@ -267,7 +267,11 @@
 
     /** stream setup during the last frame read. This is used to detect if
      * we need to subscribe or unsubscribe to any new streams. */
-    enum AVDiscard real_setup_cache[MAX_STREAMS];
+    enum AVDiscard *real_setup_cache;
+
+    /** current stream setup. This is a temporary buffer used to compare
+     * current setup to previous frame setup. */
+    enum AVDiscard *real_setup;
 
     /** the last value of the "SET_PARAMETER Subscribe:" RTSP command.
      * this is used to send the same "Unsubscribe:" if stream setup changed,