diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-13 21:57:54 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-13 21:57:54 +0000 |
commit | d28c74a027c6e356cf3b5eda9a7cbcba6c89d3fe (patch) | |
tree | fe6190b5070a32de5bcf63add5dbba661cc6b9c8 /libmpdemux | |
parent | e9885d32cd85a84f2b4a4dee8334426815234edb (diff) | |
download | mpv-d28c74a027c6e356cf3b5eda9a7cbcba6c89d3fe.tar.bz2 mpv-d28c74a027c6e356cf3b5eda9a7cbcba6c89d3fe.tar.xz |
-fps autodetection
patch by Ross Finlayson <finlayson@live.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7731 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_rtp.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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.) |