mirror of https://github.com/mpv-player/mpv
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10938 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3edb02e5e4
commit
d7f68d1212
|
@ -501,8 +501,11 @@ static demux_packet_t* getBuffer(demuxer_t* demuxer, demux_stream_t* ds,
|
|||
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 {
|
||||
|
|
Loading…
Reference in New Issue