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
This commit is contained in:
rtognimp 2005-04-16 13:42:50 +00:00
parent 17638a35a3
commit 27090defde
1 changed files with 3 additions and 2 deletions

View File

@ -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 {