[MPlayer-cvslog] CVS: main/libmpdemux asf_mmst_streaming.c, 1.29, 1.30
Roberto Togni CVS
syncmail at mplayerhq.hu
Sat Apr 16 15:42:52 CEST 2005
CVS change done by Roberto Togni CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv5653
Modified Files:
asf_mmst_streaming.c
Log Message:
Use define instead of hardcodec value for max streams number
Pathc by Dominik 'Rathann' Mierzejewski
Index: asf_mmst_streaming.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asf_mmst_streaming.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- asf_mmst_streaming.c 15 Apr 2005 23:31:57 -0000 1.29
+++ asf_mmst_streaming.c 16 Apr 2005 13:42:50 -0000 1.30
@@ -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 {
More information about the MPlayer-cvslog
mailing list