Ignore:
Timestamp:
Apr 28, 2011 4:01:40 AM (13 years ago)
Author:
ming
Message:

Fixed #1243: ICE bug: If RTCP is not in use, the agent MUST signal that using b=RS:0 and b=RR:0

File:
1 edited

Legend:

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

    r3327 r3547  
    4848#ifndef PJMEDIA_MAX_SDP_FMT 
    4949#   define PJMEDIA_MAX_SDP_FMT          32 
     50#endif 
     51 
     52/** 
     53 * The PJMEDIA_MAX_SDP_BANDW macro defines maximum bandwidth information 
     54 * lines in a media line. 
     55 */ 
     56#ifndef PJMEDIA_MAX_SDP_BANDW 
     57#   define PJMEDIA_MAX_SDP_BANDW        4 
    5058#endif 
    5159 
     
    365373PJ_DECL(pjmedia_sdp_conn*) pjmedia_sdp_conn_clone(pj_pool_t *pool,  
    366374                                                  const pjmedia_sdp_conn *rhs); 
     375 
     376 
     377 
     378/* ************************************************************************** 
     379 * SDP BANDWIDTH INFO 
     380 **************************************************************************** 
     381 */ 
     382 
     383/** 
     384 * This structure describes SDP bandwidth info ("b=" line).  
     385 */ 
     386typedef struct pjmedia_sdp_bandw 
     387{ 
     388    pj_str_t    modifier;       /**< Bandwidth modifier.                */ 
     389    pj_uint32_t value;          /**< Bandwidth value.                   */ 
     390} pjmedia_sdp_bandw; 
     391 
     392 
     393/**  
     394 * Clone bandwidth info.  
     395 *  
     396 * @param pool      Pool to allocate memory for the new bandwidth info. 
     397 * @param rhs       The bandwidth into to clone. 
     398 * 
     399 * @return          The new bandwidth info. 
     400 */ 
     401PJ_DECL(pjmedia_sdp_bandw*) 
     402pjmedia_sdp_bandw_clone(pj_pool_t *pool, const pjmedia_sdp_bandw *rhs); 
    367403 
    368404 
     
    388424        pj_str_t    transport;          /**< Transport ("RTP/AVP")          */ 
    389425        unsigned    fmt_count;          /**< Number of formats.             */ 
    390         pj_str_t    fmt[PJMEDIA_MAX_SDP_FMT];   /**< Media formats.         */ 
     426        pj_str_t    fmt[PJMEDIA_MAX_SDP_FMT];       /**< Media formats.     */ 
    391427    } desc; 
    392428 
    393     pjmedia_sdp_conn *conn;             /**< Optional connection info.      */ 
    394     unsigned         attr_count;        /**< Number of attributes.          */ 
    395     pjmedia_sdp_attr*attr[PJMEDIA_MAX_SDP_ATTR];  /**< Attributes.          */ 
     429    pjmedia_sdp_conn   *conn;           /**< Optional connection info.      */ 
     430    unsigned            bandw_count;    /**< Number of bandwidth info.      */ 
     431    pjmedia_sdp_bandw  *bandw[PJMEDIA_MAX_SDP_BANDW]; /**< Bandwidth info.  */ 
     432    unsigned            attr_count;     /**< Number of attributes.          */ 
     433    pjmedia_sdp_attr   *attr[PJMEDIA_MAX_SDP_ATTR];   /**< Attributes.      */ 
    396434 
    397435}; 
Note: See TracChangeset for help on using the changeset viewer.