aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtmppkt.h
diff options
context:
space:
mode:
authorSergiy <piratfm@gmail.com>2009-12-03 06:40:37 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-12-03 06:40:37 +0000
commita352b605945861df72977f2ed9786da3e4a90ef8 (patch)
tree530029a2508594b8cc343bbcde9aefc23cf80b35 /libavformat/rtmppkt.h
parent15e65f83ec89be2bd0c5548343f52cd317d827ce (diff)
downloadffmpeg-a352b605945861df72977f2ed9786da3e4a90ef8.tar.gz
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")) Originally committed as revision 20714 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtmppkt.h')
-rw-r--r--libavformat/rtmppkt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rtmppkt.h b/libavformat/rtmppkt.h
index 2c4f92bbec..8be59078e6 100644
--- a/libavformat/rtmppkt.h
+++ b/libavformat/rtmppkt.h
@@ -75,7 +75,8 @@ enum RTMPPacketSize {
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