[MPlayer-dev-eng] [PATCH] Another minor improvement to the RTP streaming code

Ross Finlayson finlayson at live.com
Sun Oct 13 10:21:02 CEST 2002


Index: libmpdemux/demux_rtp.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_rtp.cpp,v
retrieving revision 1.5
diff -u -r1.5 demux_rtp.cpp
--- libmpdemux/demux_rtp.cpp	8 Oct 2002 05:46:23 -0000	1.5
+++ libmpdemux/demux_rtp.cpp	13 Oct 2002 08:25:15 -0000
@@ -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-dev-eng mailing list