[MPlayer-cvslog] r25997 - in trunk: cfg-common.h cfg-mencoder.h libmpdemux/demux_nemesi.c libmpdemux/demux_rtp_codec.cpp mencoder.c mplayer.c mplayer.h
reimar
subversion at mplayerhq.hu
Thu Feb 14 15:50:34 CET 2008
Author: reimar
Date: Thu Feb 14 15:50:34 2008
New Revision: 25997
Log:
Change force_fps and force_ofps to double
Modified:
trunk/cfg-common.h
trunk/cfg-mencoder.h
trunk/libmpdemux/demux_nemesi.c
trunk/libmpdemux/demux_rtp_codec.cpp
trunk/mencoder.c
trunk/mplayer.c
trunk/mplayer.h
Modified: trunk/cfg-common.h
==============================================================================
--- trunk/cfg-common.h (original)
+++ trunk/cfg-common.h Thu Feb 14 15:50:34 2008
@@ -173,7 +173,7 @@
{"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
// force video/audio rate:
- {"fps", &force_fps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0, NULL},
+ {"fps", &force_fps, CONF_TYPE_DOUBLE, CONF_MIN, 0, 0, NULL},
{"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000, NULL},
{"channels", &audio_output_channels, CONF_TYPE_INT, CONF_RANGE, 1, 6, NULL},
{"format", &audio_output_format, CONF_TYPE_AFMT, 0, 0, 0, NULL},
Modified: trunk/cfg-mencoder.h
==============================================================================
--- trunk/cfg-mencoder.h (original)
+++ trunk/cfg-mencoder.h Thu Feb 14 15:50:34 2008
@@ -168,7 +168,7 @@ const m_option_t mencoder_opts[]={
// set output framerate - recommended for variable-FPS (ASF etc) files
// and for 29.97FPS progressive MPEG2 streams
- {"ofps", &force_ofps, CONF_TYPE_FLOAT, CONF_MIN|CONF_GLOBAL, 0, 0, NULL},
+ {"ofps", &force_ofps, CONF_TYPE_DOUBLE, CONF_MIN|CONF_GLOBAL, 0, 0, NULL},
{"o", &out_filename, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
// limit number of skippable frames after a non-skipped one
Modified: trunk/libmpdemux/demux_nemesi.c
==============================================================================
--- trunk/libmpdemux/demux_nemesi.c (original)
+++ trunk/libmpdemux/demux_nemesi.c Thu Feb 14 15:50:34 2008
@@ -108,7 +108,7 @@ static void link_session_and_fetch_conf(
rtp_session * sess,
rtp_buff * buff, unsigned int * fps)
{
- extern float force_fps;
+ extern double force_fps;
rtp_ssrc *ssrc = NULL;
rtp_frame * fr = &ndsd->first_pkt[stype];
rtp_buff trash_buff;
Modified: trunk/libmpdemux/demux_rtp_codec.cpp
==============================================================================
--- trunk/libmpdemux/demux_rtp_codec.cpp (original)
+++ trunk/libmpdemux/demux_rtp_codec.cpp Thu Feb 14 15:50:34 2008
@@ -327,7 +327,7 @@ static void needVideoFrameRate(demuxer_t
// figure out the frame rate by itself, so (unless the user specifies
// it manually, using "-fps") we figure it out ourselves here, using the
// presentation timestamps in successive packets,
- extern float force_fps; if (force_fps != 0.0) return; // user used "-fps"
+ extern double force_fps; if (force_fps != 0.0) return; // user used "-fps"
demux_stream_t* d_video = demuxer->video;
sh_video_t* sh_video = (sh_video_t*)(d_video->sh);
Modified: trunk/mencoder.c
==============================================================================
--- trunk/mencoder.c (original)
+++ trunk/mencoder.c Thu Feb 14 15:50:34 2008
@@ -163,8 +163,8 @@ static float audio_delay=0.0;
static int ignore_start=0;
static int audio_density=2;
-float force_fps=0;
-static float force_ofps=0; // set to 24 for inverse telecine
+double force_fps=0;
+static double force_ofps=0; // set to 24 for inverse telecine
static int skip_limit=-1;
float playback_speed=1.0;
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c (original)
+++ trunk/mplayer.c Thu Feb 14 15:50:34 2008
@@ -302,7 +302,7 @@ static int ignore_start=0;
static int softsleep=0;
- float force_fps=0;
+ double force_fps=0;
static int force_srate=0;
static int audio_output_format=-1; // AF_FORMAT_UNKNOWN
int frame_dropping=0; // option 0=no drop 1= drop vo 2= drop decode
Modified: trunk/mplayer.h
==============================================================================
--- trunk/mplayer.h (original)
+++ trunk/mplayer.h Thu Feb 14 15:50:34 2008
@@ -22,7 +22,7 @@ extern char * font_name;
extern char * sub_font_name;
extern float font_factor;
extern float movie_aspect;
-extern float force_fps;
+extern double force_fps;
//extern char **sub_name;
extern float sub_delay;
More information about the MPlayer-cvslog
mailing list