[SCM] libav/experimental: Send a time test to the server, as the spec recommends.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:11:55 UTC 2013


The following commit has been merged in the experimental branch:
commit 414df121e0a45bb14a2f885d6c5d0a2904643e34
Author: Zhentan Feng <spyfeng at gmail.com>
Date:   Tue Jul 20 14:59:23 2010 +0000

    Send a time test to the server, as the spec recommends.
    
    Patch by Zhentan Feng <spyfeng gmail com>.
    
    Originally committed as revision 24357 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/mmst.c b/libavformat/mmst.c
index 1750390..75fb4c6 100644
--- a/libavformat/mmst.c
+++ b/libavformat/mmst.c
@@ -179,6 +179,13 @@ static void mms_put_utf16(MMSContext *mms, uint8_t *src)
     mms->write_out_ptr += len;
 }
 
+static int send_time_test_data(MMSContext *mms)
+{
+    start_command_packet(mms, CS_PKT_TIMING_DATA_REQUEST);
+    insert_command_prefixes(mms, 0xf0f0f0f1, 0x0004000b);
+    return send_command_packet(mms);
+}
+
 static int send_protocol_select(MMSContext *mms)
 {
     char data_string[256];
@@ -599,6 +606,9 @@ static int mms_open(URLContext *h, const char *uri, int flags)
     err = mms_safe_send_recv(mms, send_startup_packet, SC_PKT_CLIENT_ACCEPTED);
     if (err)
         goto fail;
+    err = mms_safe_send_recv(mms, send_time_test_data, SC_PKT_TIMING_TEST_REPLY);
+    if (err)
+        goto fail;
     err = mms_safe_send_recv(mms, send_protocol_select, SC_PKT_PROTOCOL_ACCEPTED);
     if (err)
         goto fail;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list