[Mplayer-cvslog] CVS: main/libmpdemux demux_rtp_codec.cpp,1.5,1.6

Ross Finlayson CVS rsf at mplayerhq.hu
Thu Nov 6 06:55:26 CET 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv12074

Modified Files:
	demux_rtp_codec.cpp 
Log Message:
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.



Index: demux_rtp_codec.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_rtp_codec.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- demux_rtp_codec.cpp	27 Jul 2003 10:16:14 -0000	1.5
+++ demux_rtp_codec.cpp	6 Nov 2003 05:53:04 -0000	1.6
@@ -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)#####



More information about the MPlayer-cvslog mailing list