[MPlayer-dev-eng] Allow frame rate setting for rtsp streams

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Aug 17 19:45:45 CEST 2006


Hi!

Attached patch allows user to choose frame rate for rtsp streams with -fps.
(Possibly only necessary when using -rtsp-stream-over-tcp)

Greetings, Carl Eugen

Index: libmpdemux/demux_rtp_codec.cpp
===================================================================
--- libmpdemux/demux_rtp_codec.cpp      (Revision 19426)
+++ libmpdemux/demux_rtp_codec.cpp      (Arbeitskopie)
@@ -217,6 +217,7 @@
   int fps = (int)(subsession->videoFPS());
   if (fps != 0) {
     sh_video->fps = fps;
+    sh_video->frametime=1.0f/fps;
     return;
   }





More information about the MPlayer-dev-eng mailing list