Ignore:
Timestamp:
08/27/10 04:10:58 (21 months ago)
Author:
shiretu
Message:

-- android stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/thelib/src/protocols/rtp/streaming/outnetrtpudph264stream.cpp

    r106 r109  
    228228                //3. Timestamp 
    229229                put_htonl(((uint8_t *) _videoData.msg_iov[0].iov_base) + 4, 
    230                                 (uint32_t) (absoluteTimestamp * 90.0)); 
     230                                BaseConnectivity::ToRTPTS(absoluteTimestamp, 90000)); 
    231231 
    232232                if (chunkSize == totalLength) { 
     
    316316                //4. Timestamp 
    317317                put_htonl(((uint8_t *) _audioData.msg_iov[0].iov_base) + 4, 
    318                                 (uint32_t) (absoluteTimestamp 
    319                                 * (double) GetCapabilities()->audioCodecInfo.aac.sampleRate / 1000.000)); 
     318                                BaseConnectivity::ToRTPTS(absoluteTimestamp, 
     319                                GetCapabilities()->audioCodecInfo.aac.sampleRate)); 
    320320 
    321321                //6. put the actual buffer 
Note: See TracChangeset for help on using the changeset viewer.