Ignore:
Timestamp:
Jul 5, 2012 7:26:29 AM (12 years ago)
Author:
nanang
Message:

Fix #1547:

  • Added PJMEDIA_MAX_MRU to specify maximum packet size in receiving direction.
  • Added max_pkt_size into pj_turn_sock_cfg, default is PJ_TURN_MAX_PKT_LEN.
  • Fixed hardcoded MTU settings in media transport SRTP.
  • Added MIN_CHUNKS_PER_FRM constant in video stream.

Notes:

  • PJMEDIA_MAX_MTU & PJMEDIA_MAX_MRU to specify max packet size for TX and RX dir.
  • For ICE media transport, TURN session limits outgoing packet size to PJ_TURN_MAX_PKT_LEN (the size of internal buffer for inserting TURN overheads).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c

    r3841 r4197  
    3030 
    3131/* Maximum size of incoming RTP packet */ 
    32 #define RTP_LEN     PJMEDIA_MAX_MTU 
     32#define RTP_LEN     PJMEDIA_MAX_MRU 
    3333 
    3434/* Maximum size of incoming RTCP packet */ 
     
    4343typedef struct pending_write 
    4444{ 
    45     char                buffer[RTP_LEN]; 
     45    char                buffer[PJMEDIA_MAX_MTU]; 
    4646    pj_ioqueue_op_key_t op_key; 
    4747} pending_write; 
     
    753753 
    754754    /* Check that the size is supported */ 
    755     PJ_ASSERT_RETURN(size <= RTP_LEN, PJ_ETOOBIG); 
     755    PJ_ASSERT_RETURN(size <= PJMEDIA_MAX_MTU, PJ_ETOOBIG); 
    756756 
    757757    /* Simulate packet lost on TX direction */ 
Note: See TracChangeset for help on using the changeset viewer.