Changeset 2760 for pjproject/trunk
- Timestamp:
- Jun 13, 2009 3:28:37 PM (15 years ago)
- Location:
- pjproject/trunk/pjmedia/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/g722.c
r2735 r2760 553 553 NULL); 554 554 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)) 557 557 { 558 558 output->type = PJMEDIA_FRAME_TYPE_NONE; -
pjproject/trunk/pjmedia/src/pjmedia-codec/g7221.c
r2735 r2760 775 775 NULL); 776 776 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))) 780 780 { 781 781 output->type = PJMEDIA_FRAME_TYPE_NONE; -
pjproject/trunk/pjmedia/src/pjmedia-codec/gsm.c
r2735 r2760 543 543 NULL); 544 544 if (is_silence && 545 PJMEDIA_CODEC_MAX_SILENCE_PERIOD != -1 &&546 silence_duration < PJMEDIA_CODEC_MAX_SILENCE_PERIOD*8000/1000)545 (PJMEDIA_CODEC_MAX_SILENCE_PERIOD == -1 || 546 silence_duration < PJMEDIA_CODEC_MAX_SILENCE_PERIOD*8000/1000)) 547 547 { 548 548 output->type = PJMEDIA_FRAME_TYPE_NONE; -
pjproject/trunk/pjmedia/src/pjmedia-codec/ilbc.c
r2394 r2760 564 564 NULL); 565 565 if (is_silence && 566 PJMEDIA_CODEC_MAX_SILENCE_PERIOD != -1 &&567 silence_period < PJMEDIA_CODEC_MAX_SILENCE_PERIOD*8000/1000)566 (PJMEDIA_CODEC_MAX_SILENCE_PERIOD == -1 || 567 silence_period < PJMEDIA_CODEC_MAX_SILENCE_PERIOD*8000/1000)) 568 568 { 569 569 output->type = PJMEDIA_FRAME_TYPE_NONE; -
pjproject/trunk/pjmedia/src/pjmedia-codec/ipp_codecs.c
r2734 r2760 1313 1313 NULL); 1314 1314 if (is_silence && 1315 PJMEDIA_CODEC_MAX_SILENCE_PERIOD != -1 &&1316 silence_duration < (PJMEDIA_CODEC_MAX_SILENCE_PERIOD *1317 (int)ippc->clock_rate / 1000))1315 (PJMEDIA_CODEC_MAX_SILENCE_PERIOD == -1 || 1316 silence_duration < (PJMEDIA_CODEC_MAX_SILENCE_PERIOD * 1317 (int)ippc->clock_rate / 1000))) 1318 1318 { 1319 1319 output->type = PJMEDIA_FRAME_TYPE_NONE; -
pjproject/trunk/pjmedia/src/pjmedia-codec/l16.c
r2735 r2760 631 631 NULL); 632 632 if (is_silence && 633 PJMEDIA_CODEC_MAX_SILENCE_PERIOD != -1 &&634 silence_duration < PJMEDIA_CODEC_MAX_SILENCE_PERIOD*635 (int)data->clock_rate/1000)633 (PJMEDIA_CODEC_MAX_SILENCE_PERIOD == -1 || 634 silence_duration < PJMEDIA_CODEC_MAX_SILENCE_PERIOD* 635 (int)data->clock_rate/1000)) 636 636 { 637 637 output->type = PJMEDIA_FRAME_TYPE_NONE; -
pjproject/trunk/pjmedia/src/pjmedia/g711.c
r2735 r2760 503 503 (input->size >> 1), NULL); 504 504 if (is_silence && 505 PJMEDIA_CODEC_MAX_SILENCE_PERIOD != -1 &&506 silence_period < PJMEDIA_CODEC_MAX_SILENCE_PERIOD*8000/1000)505 (PJMEDIA_CODEC_MAX_SILENCE_PERIOD == -1 || 506 silence_period < PJMEDIA_CODEC_MAX_SILENCE_PERIOD*8000/1000)) 507 507 { 508 508 output->type = PJMEDIA_FRAME_TYPE_NONE;
Note: See TracChangeset
for help on using the changeset viewer.