# HG changeset patch # User arpi # Date 1034546274 0 # Node ID 8ead080de60c3046da90e9ccd47d305c22938e46 # Parent 36170c5a3c9a6f4d629d14109c86049c066c72f2 -fps autodetection patch by Ross Finlayson diff -r 36170c5a3c9a -r 8ead080de60c libmpdemux/demux_rtp.cpp --- a/libmpdemux/demux_rtp.cpp Sun Oct 13 21:40:10 2002 +0000 +++ b/libmpdemux/demux_rtp.cpp Sun Oct 13 21:57:54 2002 +0000 @@ -179,6 +179,11 @@ 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.)