[FFmpeg-soc] [soc]: r5693 - mms/mmst.c

spyfeng subversion at mplayerhq.hu
Sun Mar 21 04:15:24 CET 2010


Author: spyfeng
Date: Sun Mar 21 04:15:23 2010
New Revision: 5693

Log:
change fields of protocol select request packet according to MMS specification.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Sun Mar 21 01:00:05 2010	(r5692)
+++ mms/mmst.c	Sun Mar 21 04:15:23 2010	(r5693)
@@ -221,9 +221,9 @@ static int send_protocol_select(MMSConte
 
     // send the timing request packet...
     start_command_packet(mms, CS_PKT_PROTOCOL_SELECT);
-    insert_command_prefixes(mms, 0, 0);
-    put_le32(&mms->outgoing_packet_data, 0);  // timestamp?
-    put_le32(&mms->outgoing_packet_data, 0);  // timestamp?
+    insert_command_prefixes(mms, 0, 0xffffffff);
+    put_le32(&mms->outgoing_packet_data, 0);  // maxFunnelBytes
+    put_le32(&mms->outgoing_packet_data, 0x00989680);  // maxbitRate
     put_le32(&mms->outgoing_packet_data, 2);
     snprintf(data_string, sizeof(data_string), "\\\\%d.%d.%d.%d\\%s\\%d",
             (mms->local_ip_address>>24)&0xff,
@@ -233,7 +233,6 @@ static int send_protocol_select(MMSConte
             "TCP", // or UDP
             mms->local_port);
     put_le_utf16(&mms->outgoing_packet_data, data_string);
-    put_le16(&mms->outgoing_packet_data, 0x30);
 
     return send_command_packet(mms);
 }


More information about the FFmpeg-soc mailing list