From b6791ed0288fc0f348d5e4bda2755dcb9f1d67ff Mon Sep 17 00:00:00 2001 From: hyc Date: Wed, 6 Jan 2010 02:00:09 +0000 Subject: [PATCH] Use unsigned int for timestamps git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@195 400ebc74-4327-4243-bc38-086b20814532 --- rtmp.c | 2 +- rtmp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtmp.c b/rtmp.c index a949f90..40f5d3d 100644 --- a/rtmp.c +++ b/rtmp.c @@ -2233,7 +2233,7 @@ RTMP_SendPacket(RTMP * r, RTMPPacket * packet, bool queue) 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); diff --git a/rtmp.h b/rtmp.h index d3e9a3e..b248ad5 100644 --- a/rtmp.h +++ b/rtmp.h @@ -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 -- 2.40.0