diff options
author | Sergiy <piratfm@gmail.com> | 2009-12-03 06:40:37 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-12-03 06:40:37 +0000 |
commit | a352b605945861df72977f2ed9786da3e4a90ef8 (patch) | |
tree | 530029a2508594b8cc343bbcde9aefc23cf80b35 /libavformat/rtmppkt.h | |
parent | 15e65f83ec89be2bd0c5548343f52cd317d827ce (diff) | |
download | ffmpeg-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.h | 3 |
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 |