Ignore:
Timestamp:
Jun 24, 2009 3:46:49 PM (15 years ago)
Author:
nanang
Message:

Ticket #885: backported changes from ticket #884

Location:
pjproject/branches/1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.0

  • pjproject/branches/1.0/pjmedia/src/pjmedia-codec/g722.c

    r2791 r2792  
    553553                                                NULL); 
    554554        if (is_silence && 
    555             PJMEDIA_CODEC_MAX_SILENCE_PERIOD != -1 && 
    556             silence_duration < PJMEDIA_CODEC_MAX_SILENCE_PERIOD*16000/1000)  
     555            (PJMEDIA_CODEC_MAX_SILENCE_PERIOD == -1 || 
     556             silence_duration < PJMEDIA_CODEC_MAX_SILENCE_PERIOD*16000/1000)) 
    557557        { 
    558558            output->type = PJMEDIA_FRAME_TYPE_NONE; 
Note: See TracChangeset for help on using the changeset viewer.