aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--DOCS/man/en/mplayer.14
-rw-r--r--libmpdemux/muxer_mpeg.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1
index 47b03901a5..9406484bc9 100644
--- a/DOCS/man/en/mplayer.1
+++ b/DOCS/man/en/mplayer.1
@@ -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
diff --git a/libmpdemux/muxer_mpeg.c b/libmpdemux/muxer_mpeg.c
index b514ea08e8..1546ccd448 100644
--- a/libmpdemux/muxer_mpeg.c
+++ b/libmpdemux/muxer_mpeg.c
@@ -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;