Mercurial > mplayer.hg
changeset 11397:d0db11b74e82
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.
author | rsf |
---|---|
date | Thu, 06 Nov 2003 05:53:04 +0000 |
parents | 35f22b16d3d6 |
children | fca816d2f4a6 |
files | libmpdemux/demux_rtp_codec.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)#####