# HG changeset patch # User rtognimp # Date 1113658970 0 # Node ID ed74657f25b17b40e618520885d57777cef79897 # Parent 3d27bde7c654a224734338e7db41f094dcdaa06e Use define instead of hardcodec value for max streams number Pathc by Dominik 'Rathann' Mierzejewski diff -r 3d27bde7c654 -r ed74657f25b1 libmpdemux/asf_mmst_streaming.c --- 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 {