Ignore:
Timestamp:
Jun 6, 2018 8:38:29 AM (6 years ago)
Author:
nanang
Message:

Fixed #2118:

  • Stream buffer calculation is now based on maximum bitrate and maximum receiving frame size.
  • Added buffer size check when getting frame from jitter buffer, pjmedia_jbuf_get_frame*() specification has been updated that 'size' param is now input and output (was output only).
File:
1 edited

Legend:

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

    r5734 r5803  
    282282 * @param bit_info      Bit precise info of the frame, e.g: a frame may not  
    283283 *                      exactly start and end at the octet boundary, so this 
    284  *                      field may be used for specifying start & end bit offset. 
     284 *                      field may be used for specifying start & end bit 
     285 *                      offset. 
    285286 * @param frame_seq     The frame sequence number. 
    286287 * @param discarded     Flag whether the frame is discarded by jitter buffer. 
     
    307308 * @param bit_info      Bit precise info of the frame, e.g: a frame may not  
    308309 *                      exactly start and end at the octet boundary, so this 
    309  *                      field may be used for specifying start & end bit offset. 
     310 *                      field may be used for specifying start & end bit 
     311 *                      offset. 
    310312 * @param frame_seq     The frame sequence number. 
    311313 * @param frame_ts      The frame timestamp. 
     
    355357 * @param frame         Buffer to receive the payload from the jitter buffer. 
    356358 *                      @see pjmedia_jbuf_get_frame().     
    357  * @param size          Pointer to receive frame size. 
     359 * @param size          On input, it points to maximum buffer length. 
     360 *                      On output, it will be filled with received frame size. 
    358361 * @param p_frm_type    Pointer to receive frame type. 
    359362 *                      @see pjmedia_jbuf_get_frame().     
    360363 * @param bit_info      Bit precise info of the frame, e.g: a frame may not  
    361364 *                      exactly start and end at the octet boundary, so this 
    362  *                      field may be used for specifying start & end bit offset. 
     365 *                      field may be used for specifying start & end bit 
     366 *                      offset. 
    363367 */ 
    364368PJ_DECL(void) pjmedia_jbuf_get_frame2(pjmedia_jbuf *jb,  
     
    376380 * @param frame         Buffer to receive the payload from the jitter buffer. 
    377381 *                      @see pjmedia_jbuf_get_frame().     
    378  * @param size          Pointer to receive frame size. 
     382 * @param size          On input, it points to maximum buffer length. 
     383 *                      On output, it will be filled with received frame size. 
    379384 * @param p_frm_type    Pointer to receive frame type. 
    380385 *                      @see pjmedia_jbuf_get_frame().     
    381386 * @param bit_info      Bit precise info of the frame, e.g: a frame may not  
    382387 *                      exactly start and end at the octet boundary, so this 
    383  *                      field may be used for specifying start & end bit offset. 
     388 *                      field may be used for specifying start & end bit 
     389 *                      offset. 
    384390 * @param ts            Frame timestamp. 
    385391 * @param seq           Frame sequence number. 
     
    407413 * @param bit_info      Bit precise info of the frame, e.g: a frame may not  
    408414 *                      exactly start and end at the octet boundary, so this 
    409  *                      field may be used for specifying start & end bit offset. 
     415 *                      field may be used for specifying start & end bit 
     416 *                      offset. 
    410417 * @param ts            Frame timestamp. 
    411418 * @param seq           Frame sequence number. 
Note: See TracChangeset for help on using the changeset viewer.