diff rtmppkt.h @ 5410:f66e3c131106 libavformat

RTMP packets with one-byte header use previous packet timestamp difference, so track timestamp difference as well. Patch by Sergiy (mail.composeAddress("piratfm","gmail.com"))
author kostya
date Thu, 03 Dec 2009 06:40:37 +0000
parents 6f86cffa86aa
children 25a21f96f863
line wrap: on
line diff
--- a/rtmppkt.h	Thu Dec 03 00:27:01 2009 +0000
+++ b/rtmppkt.h	Thu Dec 03 06:40:37 2009 +0000
@@ -75,7 +75,8 @@
 typedef struct RTMPPacket {
     uint8_t        channel_id; ///< RTMP channel ID (nothing to do with audio/video channels though)
     RTMPPacketType type;       ///< packet payload type
-    uint32_t       timestamp;  ///< packet full timestamp or timestamp increment to the previous one in milliseconds (latter only for media packets)
+    uint32_t       timestamp;  ///< packet full timestamp
+    uint32_t       ts_delta;   ///< timestamp increment to the previous one in milliseconds (latter only for media packets)
     uint32_t       extra;      ///< probably an additional channel ID used during streaming data
     uint8_t        *data;      ///< packet payload
     int            data_size;  ///< packet payload size