-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:
arpi 2002-10-13 21:57:54 +00:00
parent e9885d32cd
commit d28c74a027
1 changed files with 5 additions and 0 deletions

View File

@ -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.)