summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-16 13:42:50 +0000
committerrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-16 13:42:50 +0000
commit27090defded43b94626408394d8b80a485c64723 (patch)
tree952f3bf17296de66cbe1199608b1600cfa4f7c72 /libmpdemux
parent17638a35a3536062cd1926f27e2fa467baba2030 (diff)
downloadmpv-27090defded43b94626408394d8b80a485c64723.tar.bz2
mpv-27090defded43b94626408394d8b80a485c64723.tar.xz
Use define instead of hardcodec value for max streams number
Pathc by Dominik 'Rathann' Mierzejewski git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15182 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/asf_mmst_streaming.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmpdemux/asf_mmst_streaming.c b/libmpdemux/asf_mmst_streaming.c
index e5886b89e7..699d6b2e9e 100644
--- a/libmpdemux/asf_mmst_streaming.c
+++ b/libmpdemux/asf_mmst_streaming.c
@@ -42,6 +42,7 @@
#define BUF_SIZE 102400
#define HDR_BUF_SIZE 8192
+#define MAX_STREAMS 20
typedef struct
{
@@ -52,7 +53,7 @@ typedef struct
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 @@ static int interp_header (uint8_t *header, int header_len)
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 {