Ignore:
Timestamp:
Mar 8, 2012 8:34:30 AM (12 years ago)
Author:
nanang
Message:

Fix #1440:

  • Use separate buffer for outgoing RTCP. Previously, RTCP generation might override outgoing RTP payload (because of shared buffer).
  • Use exact size for RTCP-XR content buffer. Previously RTCP-XR content buffer size was set to PJMEDIA_MAX_MTU, quite huge wasted space.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjmedia/include/pjmedia/rtcp_xr.h

    r3553 r3969  
    201201} pjmedia_rtcp_xr_rb_voip_mtc; 
    202202 
     203 
     204/** 
     205 * Constant of RTCP-XR content size. 
     206 */ 
     207#define PJMEDIA_RTCP_XR_BUF_SIZE \ 
     208    sizeof(pjmedia_rtcp_xr_rb_rr_time) + \ 
     209    sizeof(pjmedia_rtcp_xr_rb_dlrr) + \ 
     210    sizeof(pjmedia_rtcp_xr_rb_stats) + \ 
     211    sizeof(pjmedia_rtcp_xr_rb_voip_mtc) 
     212 
     213 
    203214/** 
    204215 * This structure declares RTCP XR (Extended Report) packet. 
     
    222233    } common; 
    223234 
    224     pj_int8_t            buf[PJMEDIA_MAX_MTU];/**< Content buffer   */ 
     235    pj_int8_t            buf[PJMEDIA_RTCP_XR_BUF_SIZE]; 
     236                                        /**< Content buffer   */ 
    225237} pjmedia_rtcp_xr_pkt; 
    226238 
Note: See TracChangeset for help on using the changeset viewer.