# HG changeset patch # User rsf # Date 1068097984 0 # Node ID d0db11b74e8241fa7e413b54ebb1d8121f1cbe5b # Parent 35f22b16d3d60499f4e22e0397af93c87434caf9 Increased the threshold for how many incoming frames to look at while guessing the video frame rate (if "-fps" isn't used) - from 100, to 300. diff -r 35f22b16d3d6 -r d0db11b74e82 libmpdemux/demux_rtp_codec.cpp --- a/libmpdemux/demux_rtp_codec.cpp Wed Nov 05 22:58:41 2003 +0000 +++ b/libmpdemux/demux_rtp_codec.cpp Thu Nov 06 05:53:04 2003 +0000 @@ -220,12 +220,13 @@ // non-zero "pts" timestamps: unsigned char* packetData; unsigned packetDataLen; float lastPTS = 0.0, curPTS; - unsigned const maxNumFramesToWaitFor = 100; + unsigned const maxNumFramesToWaitFor = 300; for (unsigned i = 0; i < maxNumFramesToWaitFor; ++i) { if (!awaitRTPPacket(demuxer, d_video, packetData, packetDataLen, curPTS)) { break; } + fprintf(stderr, "%d: cur %f, last %f\n", i, curPTS, lastPTS);//#####@@@@@ if (curPTS > lastPTS && lastPTS != 0.0) { // Use the difference between these two "pts"s to guess the frame rate. // (should really check that there were no missing frames inbetween)#####