Changeset 382 for pjproject


Ignore:
Timestamp:
Apr 4, 2006 9:39:10 PM (19 years ago)
Author:
bennylp
Message:

Fixed bug in RTCP: packing error causing size mismatch when compiled with MSVC

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/rtcp.h

    r381 r382  
    3737 * @{ 
    3838 */ 
     39 
     40#pragma pack(1) 
    3941 
    4042/** 
     
    101103    unsigned        pt:8;       /**< payload type           */ 
    102104#endif 
    103     pj_uint16_t     length;     /**< packet length          */ 
     105    unsigned        length:16;  /**< packet length          */ 
    104106}; 
    105107 
     
    123125 */ 
    124126typedef struct pjmedia_rtcp_pkt pjmedia_rtcp_pkt; 
     127 
     128 
     129#pragma pack() 
    125130 
    126131 
  • pjproject/trunk/pjsip-apps/src/samples/siprtp.c

    r381 r382  
    11061106                app_perror(THIS_FILE, "Error receiving RTCP packet", status); 
    11071107            else { 
    1108                 if (size > sizeof(strm->rem_rtcp)) { 
    1109                     PJ_LOG(3,(THIS_FILE, "Error: RTCP packet too large")); 
     1108                if (size != sizeof(strm->rem_rtcp)) { 
     1109                    PJ_LOG(3,(THIS_FILE, "Error: RTCP packet size mismatch " 
     1110                                         "(recv %d bytes, expecting %d)", 
     1111                                         size, sizeof(strm->rem_rtcp))); 
    11101112                    status = -1; 
    11111113                } else { 
Note: See TracChangeset for help on using the changeset viewer.