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

spyfeng subversion at mplayerhq.hu
Thu Jul 15 18:34:29 CEST 2010


Author: spyfeng
Date: Thu Jul 15 18:34:29 2010
New Revision: 5861

Log:
remove the useless code.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Thu Jul 15 18:17:51 2010	(r5860)
+++ mms/mmst.c	Thu Jul 15 18:34:29 2010	(r5861)
@@ -26,7 +26,6 @@
 #include "libavcodec/bytestream.h"
 #include "network.h"
 #include "asf.h"
-#include <unistd.h>
 
 #define LOCAL_ADDRESS 0xc0a80081    // FIXME get and use correct local ip address.
 #define LOCAL_PORT    1037          // as above.
@@ -208,7 +207,6 @@ static int send_protocol_select(MMSConte
             LOCAL_PORT);
 
     mms_put_utf16(mms, data_string);
-    bytestream_put_le16(&mms->write_out_ptr, 0);
     return send_command_packet(mms);
 }
 
@@ -377,7 +375,6 @@ static int mms_safe_send_recv(MMSContext
                               const MMSSCPacketType expect_type)
 {
     MMSSCPacketType type;
-    int i;
     if(send_fun) {
         int ret = send_fun(mms);
         if (ret < 0) {
@@ -391,7 +388,6 @@ static int mms_safe_send_recv(MMSContext
     } else {
         return 0;
     }
-    return -1;
 }
 
 static int send_media_header_request(MMSContext *mms)


More information about the FFmpeg-soc mailing list