mirror of https://github.com/mpv-player/mpv
-fps autodetection
patch by Ross Finlayson <finlayson@live.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7731 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e9885d32cd
commit
d28c74a027
|
@ -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.)
|
||||
|
|
Loading…
Reference in New Issue