[rtmpdump] r195 - in trunk: rtmp.c rtmp.h
hyc
subversion at mplayerhq.hu
Wed Jan 6 03:00:10 CET 2010
Author: hyc
Date: Wed Jan 6 03:00:09 2010
New Revision: 195
Log:
Use unsigned int for timestamps
Modified:
trunk/rtmp.c
trunk/rtmp.h
Modified: trunk/rtmp.c
==============================================================================
--- trunk/rtmp.c Wed Jan 6 02:57:53 2010 (r194)
+++ trunk/rtmp.c Wed Jan 6 03:00:09 2010 (r195)
@@ -2233,7 +2233,7 @@ RTMP_SendPacket(RTMP * r, RTMPPacket * p
if (nSize > 1)
{
- int t = packet->m_nInfoField1;
+ uint32_t t = packet->m_nInfoField1;
if (t > 0xffffff)
t = 0xffffff;
hptr = AMF_EncodeInt24(hptr, hend, t);
Modified: trunk/rtmp.h
==============================================================================
--- trunk/rtmp.h Wed Jan 6 02:57:53 2010 (r194)
+++ trunk/rtmp.h Wed Jan 6 03:00:09 2010 (r195)
@@ -85,7 +85,7 @@ typedef struct RTMPPacket
BYTE m_headerType;
BYTE m_packetType;
int m_nChannel;
- int32_t m_nInfoField1; // 3 first bytes
+ uint32_t m_nInfoField1; // 3 first bytes
int32_t m_nInfoField2; // last 4 bytes in a long header, absolute timestamp for long headers, relative timestamp for short headers
bool m_hasAbsTimestamp; // timestamp absolute or relative?
uint32_t m_nTimeStamp; // absolute timestamp
More information about the rtmpdump
mailing list