renamed init_adelay to vdelay with opposite range

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14773 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2005-02-22 21:49:08 +00:00
parent 0b151b7ea9
commit e23435af4a
2 changed files with 4 additions and 4 deletions

View File

@ -7635,8 +7635,8 @@ initial video pts, in milliseconds (default: 200)
initial audio pts, in milliseconds (default: 200)
.
.TP
.B init_adelay=<-32760\--1>
Initial audio anticipation time == video delay, in milliseconds (default: 0),
.B vdelay=<1\-32760>
Initial video delay time, in milliseconds (default: 0),
use it if you want to delay video with respect to audio.
.
.TP

View File

@ -167,7 +167,7 @@ m_option_t mpegopts_conf[] = {
{"vbitrate", &(conf_vbitrate), CONF_TYPE_INT, CONF_RANGE, 1, 104857599, NULL},
{"init_vpts", &(conf_init_vpts), CONF_TYPE_INT, CONF_RANGE, 100, 700, NULL}, //2*frametime at 60fps
{"init_apts", &(conf_init_apts), CONF_TYPE_INT, CONF_RANGE, 100, 700, NULL},
{"init_adelay", &conf_init_adelay, CONF_TYPE_INT, CONF_RANGE, -32760, -1, NULL},
{"vdelay", &conf_init_adelay, CONF_TYPE_INT, CONF_RANGE, 1, 32760, NULL},
{"drop", &conf_drop, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"tsaf", &conf_ts_allframes, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"skip_padding", &conf_skip_padding, CONF_TYPE_FLAG, 0, 0, 1, NULL},
@ -2418,7 +2418,7 @@ int muxer_init_muxer_mpeg(muxer_t *muxer){
priv->scr = muxer->file_end = 0;
if(conf_init_adelay)
priv->init_adelay = (double) conf_init_adelay / (double) 1000.0;
priv->init_adelay = - (double) conf_init_adelay / (double) 1000.0;
priv->drop = conf_drop;