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

Arpi of Ize arpi at mplayerhq.hu
Sun Oct 13 23:57:57 CEST 2002


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

Modified Files:
	demux_rtp.cpp 
Log Message:
-fps autodetection
patch by Ross Finlayson <finlayson at live.com>


Index: demux_rtp.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_rtp.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- demux_rtp.cpp	8 Oct 2002 05:46:23 -0000	1.5
+++ demux_rtp.cpp	13 Oct 2002 21:57:54 -0000	1.6
@@ -179,6 +179,11 @@
 	  demux_stream_t* d_video = demuxer->video;
 	  d_video->sh = sh_video; sh_video->ds = d_video;
 
+	  // If we happen to know the subsession's video frame rate, set it,
+	  // so that the user doesn't have to give the "-fps" option instead.
+	  int fps = (int)(subsession->videoFPS());
+	  if (fps != 0) sh_video->fps = fps;
+
 	  // Map known video MIME types to the BITMAPINFOHEADER parameters
 	  // that this program uses.  (Note that not all types need all
 	  // of the parameters to be set.)




More information about the MPlayer-cvslog mailing list