summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-04-04 21:39:10 +0000
committerBenny Prijono <bennylp@teluu.com>2006-04-04 21:39:10 +0000
commitee48033d397909ffc4d88048f8a1f3d0dd62a2a6 (patch)
treec25e953ec79989e53f74adca5a36e25c61823046 /pjmedia
parent102399153cc12f988c4e1039caab8cd159dd1019 (diff)
Fixed bug in RTCP: packing error causing size mismatch when compiled with MSVC
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@382 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/include/pjmedia/rtcp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pjmedia/include/pjmedia/rtcp.h b/pjmedia/include/pjmedia/rtcp.h
index ccd32a20..96f135e3 100644
--- a/pjmedia/include/pjmedia/rtcp.h
+++ b/pjmedia/include/pjmedia/rtcp.h
@@ -37,6 +37,8 @@ PJ_BEGIN_DECL
* @{
*/
+#pragma pack(1)
+
/**
* RTCP sender report.
*/
@@ -100,7 +102,7 @@ struct pjmedia_rtcp_common
unsigned version:2; /**< packet type */
unsigned pt:8; /**< payload type */
#endif
- pj_uint16_t length; /**< packet length */
+ unsigned length:16; /**< packet length */
};
/**
@@ -124,6 +126,9 @@ struct pjmedia_rtcp_pkt
typedef struct pjmedia_rtcp_pkt pjmedia_rtcp_pkt;
+#pragma pack()
+
+
/**
* NTP time representation.
*/