Changeset 724


Ignore:
Timestamp:
01/17/12 12:29:18 (4 months ago)
Author:
shiretu
Message:

-- fixed critical bug in RTP protocol parsing. P flag was not used!

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/sources/thelib/src/protocols/rtp/inboundrtpprotocol.cpp

    r413 r724  
    1 /*  
     1/* 
    22 *  Copyright (c) 2010, 
    33 *  Gavriloaie Eugen-Andrei (shiretu@gmail.com) 
     
    105105        pBuffer += 12 + GET_RTP_CC(_rtpHeader)*4; 
    106106        length -= 12 + GET_RTP_CC(_rtpHeader)*4; 
     107        if (GET_RTP_P(_rtpHeader)) 
     108                length -= pBuffer[length - 1]; 
    107109 
    108110        //7. Detect rollover and adjust the timestamp 
  • trunk/sources/thelib/src/protocols/rtp/inboundrtpprotocol.cpp

    r413 r724  
    1 /*  
     1/* 
    22 *  Copyright (c) 2010, 
    33 *  Gavriloaie Eugen-Andrei (shiretu@gmail.com) 
     
    105105        pBuffer += 12 + GET_RTP_CC(_rtpHeader)*4; 
    106106        length -= 12 + GET_RTP_CC(_rtpHeader)*4; 
     107        if (GET_RTP_P(_rtpHeader)) 
     108                length -= pBuffer[length - 1]; 
    107109 
    108110        //7. Detect rollover and adjust the timestamp 
Note: See TracChangeset for help on using the changeset viewer.