- Timestamp:
- 08/22/10 20:05:34 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/thelib/src/protocols/rtp/streaming/outnetrtpudph264stream.cpp
r56 r88 185 185 totalLength -= 9; 186 186 } 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) 190 191 && (NALU_TYPE(pData[0]) != NALU_TYPE_IDR)) { 191 192 //FINEST("ignoring absoluteTimestamp: %.2f; %s", absoluteTimestamp, STR(NALUToString(pData[0]))); … … 194 195 } 195 196 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 // } 207 208 208 209 uint32_t sentAmount = 0;
Note: See TracChangeset
for help on using the changeset viewer.
