Hi Ross, I found it will send RTP packet with empty payload data in function MultiFramedRTPSink::afterGettingFrame1 if frameSize is 0. How can I avoid this issue? Can you help me? Thanks.
void MultiFramedRTPSink ::afterGettingFrame1(unsigned frameSize, unsigned numTruncatedBytes, // frameSize is 0 struct timeval presentationTime, unsigned durationInMicroseconds) { ....... if (fOutBuf->isPreferredSize() || fOutBuf->wouldOverflow(numFrameBytesToUse) || (fPreviousFrameEndedFragmentation && !allowOtherFramesAfterLastFragment()) || !frameCanAppearAfterPacketStart(fOutBuf->curPtr() - frameSize, // frameCanAppearAfterPacketStart is false; frameSize) ) { // The packet is ready to be sent now sendPacketIfNecessary(); logd("sendPacketIfNecessary now. frameSize is %d\n", frameSize); } else { // There's room for more frames; try getting another: packFrame(); logd("packFrame now. frameSize is %d\n", frameSize); } ……. Thanks. /Qian
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel