From d28c74a027c6e356cf3b5eda9a7cbcba6c89d3fe Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 13 Oct 2002 21:57:54 +0000 Subject: -fps autodetection patch by Ross Finlayson git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7731 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_rtp.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libmpdemux/demux_rtp.cpp') diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp index ef9ea15821..86c9ea641f 100644 --- a/libmpdemux/demux_rtp.cpp +++ b/libmpdemux/demux_rtp.cpp @@ -179,6 +179,11 @@ extern "C" void demux_open_rtp(demuxer_t* demuxer) { 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.) -- cgit v1.2.3