--- libmpdemux/asf_mmst_streaming.c	13 Apr 2005 19:21:05 -0000	1.28
+++ libmpdemux/asf_mmst_streaming.c	13 Apr 2005 19:21:54 -0000
@@ -334,8 +334,12 @@
 
       printf ("stream object, stream id: %d\n", stream_id);
 
+      if (num_stream_ids < 20) {
       stream_ids[num_stream_ids] = stream_id;
       num_stream_ids++;
+      } else {
+        printf ("too many id, stream skipped");
+      }
       
     } else {
       printf ("unknown object\n");
