Ignore:
Timestamp:
08/22/10 20:05:34 (21 months ago)
Author:
shiretu
Message:

-- android related stuff

File:
1 edited

Legend:

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

    r56 r88  
    185185                totalLength -= 9; 
    186186        } else { 
    187                 if ((NALU_TYPE(pData[0]) != NALU_TYPE_SPS) 
    188                                 && (NALU_TYPE(pData[0]) != NALU_TYPE_PPS) 
    189                                 && (NALU_TYPE(pData[0]) != NALU_TYPE_SLICE) 
     187                if ( 
     188                                //                              (NALU_TYPE(pData[0]) != NALU_TYPE_SPS) 
     189                                //                              && (NALU_TYPE(pData[0]) != NALU_TYPE_PPS) 
     190                                (NALU_TYPE(pData[0]) != NALU_TYPE_SLICE) 
    190191                                && (NALU_TYPE(pData[0]) != NALU_TYPE_IDR)) { 
    191192                        //FINEST("ignoring absoluteTimestamp: %.2f; %s", absoluteTimestamp, STR(NALUToString(pData[0]))); 
     
    194195        } 
    195196 
    196         if (processedLength == 0 && NALU_TYPE(pData[0]) == NALU_TYPE_IDR) { 
    197                 put_htons(_pSPS + 2, _videoCounter); 
    198                 _videoCounter++; 
    199                 put_htonl(_pSPS + 4, (uint32_t) (absoluteTimestamp * 90.0)); 
    200                 put_htons(_pPPS + 2, _videoCounter); 
    201                 _videoCounter++; 
    202                 put_htonl(_pPPS + 4, (uint32_t) (absoluteTimestamp * 90.0)); 
    203  
    204                 _pConnectivity->FeedVideoData(_pSPS, _SPSLen); 
    205                 _pConnectivity->FeedVideoData(_pPPS, _PPSLen); 
    206         } 
     197        //      if (processedLength == 0 && NALU_TYPE(pData[0]) == NALU_TYPE_IDR) { 
     198        //              put_htons(_pSPS + 2, _videoCounter); 
     199        //              _videoCounter++; 
     200        //              put_htonl(_pSPS + 4, (uint32_t) (absoluteTimestamp * 90.0)); 
     201        //              put_htons(_pPPS + 2, _videoCounter); 
     202        //              _videoCounter++; 
     203        //              put_htonl(_pPPS + 4, (uint32_t) (absoluteTimestamp * 90.0)); 
     204        // 
     205        //              _pConnectivity->FeedVideoData(_pSPS, _SPSLen); 
     206        //              _pConnectivity->FeedVideoData(_pPPS, _PPSLen); 
     207        //      } 
    207208 
    208209        uint32_t sentAmount = 0; 
Note: See TracChangeset for help on using the changeset viewer.