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

spyfeng subversion at mplayerhq.hu
Mon Apr 19 17:21:47 CEST 2010


Author: spyfeng
Date: Mon Apr 19 17:21:46 2010
New Revision: 5757

Log:
remove useless variable in MMSContext.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Sun Apr 18 11:12:53 2010	(r5756)
+++ mms/mmst.c	Mon Apr 19 17:21:46 2010	(r5757)
@@ -104,7 +104,6 @@ typedef struct {
     /*@{*/
     uint8_t *pkt_read_ptr;               ///< Pointer for partial reads.
     int pkt_buf_len;                     ///< Buffer length.
-    int pkt_offset;                      ///< offset in packet.
     /*@}*/
 
     int incoming_packet_seq;             ///< Incoming packet sequence number.
@@ -246,11 +245,6 @@ static void pad_media_packet(MMSContext 
         memset(mms->incoming_buffer + mms->pkt_buf_len, 0, padding_size);
         mms->pkt_buf_len += padding_size;
     }
-    if(mms->pkt_offset) {
-        mms->pkt_buf_len -= mms->pkt_offset;
-        mms->pkt_read_ptr += mms->pkt_offset;
-        mms->pkt_offset = 0;
-    }
 }
 
 /** Read incoming MMST media, header or command packet. */


More information about the FFmpeg-soc mailing list