Changeset 3414


Ignore:
Timestamp:
Feb 17, 2011 9:08:11 AM (9 years ago)
Author:
nanang
Message:

Misc (re #1175): fixed possible division-by-zero bug when receiving problematic G722 payloads (e.g: sized less than 160 bytes) and remote clock-rate/timestamp-span detection is active (PJMEDIA_HANDLE_G722_MPEG_BUG is set). Thanks Erik Waling for the patch.

File:
1 edited

Legend:

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

    r3387 r3414  
    17151715                 */ 
    17161716                if (seq_st.diff == 1 && stream->rtp_rx_last_ts &&  
    1717                     ts.u64 > stream->rtp_rx_last_ts) 
     1717                    ts.u64 > stream->rtp_rx_last_ts &&  
     1718                    stream->rtp_rx_last_cnt > 0) 
    17181719                { 
    17191720                    unsigned peer_frm_ts_diff; 
Note: See TracChangeset for help on using the changeset viewer.