# HG changeset patch # User rsf # Date 1050139819 0 # Node ID fa45d335a43bb6c146437e79c8fa7ab4127ade2d # Parent 41ed68e3a034c5ed0be73dcce3ca62957232945d Fixed a bug that could sometimes cause the first video packet in a RTP stream to be rejected. diff -r 41ed68e3a034 -r fa45d335a43b libmpdemux/demux_rtp.cpp --- a/libmpdemux/demux_rtp.cpp Sat Apr 12 09:29:13 2003 +0000 +++ b/libmpdemux/demux_rtp.cpp Sat Apr 12 09:30:19 2003 +0000 @@ -441,7 +441,10 @@ if (!mustGetNewData) { // Check whether we have a previously-saved buffer that we can use: dp = bufferQueue->getPendingBuffer(); - if (dp != NULL) return dp; + if (dp != NULL) { + ptsBehind = 0.0; // so that we always accept this data + return dp; + } } // Allocate a new packet buffer, and arrange to read into it: