changeset 15181:ed74657f25b1

Use define instead of hardcodec value for max streams number Pathc by Dominik 'Rathann' Mierzejewski
author rtognimp
date Sat, 16 Apr 2005 13:42:50 +0000
parents 3d27bde7c654
children 76ea56065ec5
files libmpdemux/asf_mmst_streaming.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/asf_mmst_streaming.c	Sat Apr 16 13:14:38 2005 +0000
+++ b/libmpdemux/asf_mmst_streaming.c	Sat Apr 16 13:42:50 2005 +0000
@@ -42,6 +42,7 @@
 
 #define BUF_SIZE 102400
 #define HDR_BUF_SIZE 8192
+#define MAX_STREAMS 20
 
 typedef struct 
 {
@@ -52,7 +53,7 @@
 
 static int seq_num;
 static int num_stream_ids;
-static int stream_ids[20];
+static int stream_ids[MAX_STREAMS];
 
 static int get_data (int s, char *buf, size_t count);
 
@@ -334,7 +335,7 @@
 
       printf ("stream object, stream id: %d\n", stream_id);
 
-      if (num_stream_ids < 20) {
+      if (num_stream_ids < MAX_STREAMS) {
       stream_ids[num_stream_ids] = stream_id;
       num_stream_ids++;
       } else {