Ignore:
Timestamp:
Jun 13, 2009 3:28:37 PM (12 years ago)
Author:
nanang
Message:

Ticket #884: Fixed codecs (that use pjmedia VAD) to avoid generating keep-alive frames/payload when PJMEDIA_CODEC_MAX_SILENCE_PERIOD is set to -1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/g7221.c

    r2735 r2760  
    775775                                                NULL); 
    776776        if (is_silence && 
    777             PJMEDIA_CODEC_MAX_SILENCE_PERIOD != -1 && 
    778             silence_duration < (PJMEDIA_CODEC_MAX_SILENCE_PERIOD * 
    779                                 (int)codec_data->samples_per_frame / 20))  
     777            (PJMEDIA_CODEC_MAX_SILENCE_PERIOD == -1 || 
     778             silence_duration < (PJMEDIA_CODEC_MAX_SILENCE_PERIOD * 
     779                                 (int)codec_data->samples_per_frame / 20))) 
    780780        { 
    781781            output->type = PJMEDIA_FRAME_TYPE_NONE; 
Note: See TracChangeset for help on using the changeset viewer.