[Mplayer-cvslog] CVS: 0_90/libmpdemux asf_mmst_streaming.c,1.7,1.8
Alex Beregszaszi
alex at mplayerhq.hu
Fri Jun 20 15:26:53 CEST 2003
Update of /cvsroot/mplayer/0_90/libmpdemux
In directory mail:/var/tmp.root/cvs-serv8476
Modified Files:
asf_mmst_streaming.c
Log Message:
backport (noted by Bjorn Sandell)
Index: asf_mmst_streaming.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/libmpdemux/asf_mmst_streaming.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- asf_mmst_streaming.c 30 Oct 2002 14:10:36 -0000 1.7
+++ asf_mmst_streaming.c 20 Jun 2003 13:26:51 -0000 1.8
@@ -424,7 +424,7 @@
int asf_mmst_streaming_start(stream_t *stream)
{
char str[1024];
- char data[1024];
+ char data[BUF_SIZE];
uint8_t asf_header[8192];
int asf_header_len;
int len, i, packet_length;
@@ -455,7 +455,7 @@
* cmd 1 0x01
* */
- sprintf (str, "\034\003NSPlayer/7.0.0.1956; {33715801-BAB3-9D85-24E9-03B90328270A}; Host: %s", url1->hostname);
+ snprintf (str, 1023, "\034\003NSPlayer/7.0.0.1956; {33715801-BAB3-9D85-24E9-03B90328270A}; Host: %s", url1->hostname);
string_utf16 (data, str, strlen(str)+2);
// send_command(s, commandno ....)
send_command (s, 1, 0, 0x0004000b, strlen(str) * 2+8, data);
More information about the MPlayer-cvslog
mailing list