Changeset 5785


Ignore:
Timestamp:
Apr 23, 2018 9:30:55 AM (7 years ago)
Author:
ming
Message:

Fixed #2110: Incorrect DTMF duration/timestamp for codecs with RTP timestamp unit not using actual sampling rate

File:
1 edited

Legend:

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

    r5764 r5785  
    955955    } 
    956956 
    957     digit->duration += PJMEDIA_PIA_SPF(&stream->port.info); 
     957    digit->duration += stream->rtp_tx_ts_len_per_pkt; 
    958958    if (digit->duration >= PJMEDIA_DTMF_DURATION) 
    959959        digit->duration = PJMEDIA_DTMF_DURATION; 
     
    13051305             */ 
    13061306            inc_timestamp = PJMEDIA_DTMF_DURATION + 
    1307                             ((DTMF_EBIT_RETRANSMIT_CNT-1) * samples_per_frame) 
     1307                            ((DTMF_EBIT_RETRANSMIT_CNT-1) * 
     1308                             stream->rtp_tx_ts_len_per_pkt) 
    13081309                            - rtp_ts_len; 
    13091310        } 
Note: See TracChangeset for help on using the changeset viewer.