# HG changeset patch # User rsf # Date 1064392917 0 # Node ID 384f6a88a31d5db321b22ee0acd5e08452fef43f # Parent 51bc09f2977c775ba200e8902717fcf09cf50a66 Changed the criteria for when to drop RTP packets whose timestamp is too far behind that of the other (audio or video) stream. Now, this is done only if both streams have been synchronized using RTCP. diff -r 51bc09f2977c -r 384f6a88a31d libmpdemux/demux_rtp.cpp --- a/libmpdemux/demux_rtp.cpp Wed Sep 24 07:38:57 2003 +0000 +++ b/libmpdemux/demux_rtp.cpp Wed Sep 24 08:41:57 2003 +0000 @@ -501,8 +501,11 @@ scheduler.doEventLoop(&bufferQueue->blockingFlag); // Set the "ptsBehind" result parameter: - if (bufferQueue->prevPacketPTS != 0.0 && *(bufferQueue->otherQueue) != NULL - && (*(bufferQueue->otherQueue))->prevPacketPTS != 0.0) { + if (bufferQueue->prevPacketPTS != 0.0 + && bufferQueue->prevPacketWasSynchronized + && *(bufferQueue->otherQueue) != NULL + && (*(bufferQueue->otherQueue))->prevPacketPTS != 0.0 + && (*(bufferQueue->otherQueue))->prevPacketWasSynchronized) { ptsBehind = (*(bufferQueue->otherQueue))->prevPacketPTS - bufferQueue->prevPacketPTS; } else {