Ignore:
Timestamp:
Oct 5, 2012 10:04:54 AM (12 years ago)
Author:
ming
Message:

Re #1586: Add support for SILK multiple frames per packet

File:
1 edited

Legend:

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

    r4263 r4278  
    21782178 
    21792179    /* Get the frame size */ 
    2180     stream->frame_size = stream->codec_param.info.max_bps *  
    2181                          stream->codec_param.info.frm_ptime / 8 / 1000; 
    2182     if ((stream->codec_param.info.max_bps * stream->codec_param.info.frm_ptime)  
    2183         % 8000 != 0) 
    2184     { 
    2185         ++stream->frame_size; 
     2180    if (stream->codec_param.info.max_rx_frame_size > 0) { 
     2181        stream->frame_size = stream->codec_param.info.max_rx_frame_size; 
     2182    } else { 
     2183        stream->frame_size = stream->codec_param.info.max_bps *  
     2184                             stream->codec_param.info.frm_ptime / 8 / 1000; 
     2185        if ((stream->codec_param.info.max_bps * 
     2186             stream->codec_param.info.frm_ptime) % 8000 != 0) 
     2187        { 
     2188            ++stream->frame_size; 
     2189        } 
    21862190    } 
    21872191 
Note: See TracChangeset for help on using the changeset viewer.