[MPlayer-cvslog] CVS: main cfg-mencoder.h, 1.106, 1.107 mencoder.c, 1.338, 1.339
Corey Hickey CVS
syncmail at mplayerhq.hu
Sun Feb 19 10:34:38 CET 2006
CVS change done by Corey Hickey CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv15247
Modified Files:
cfg-mencoder.h mencoder.c
Log Message:
dwStart support for mencoder.
Index: cfg-mencoder.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-mencoder.h,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -r1.106 -r1.107
--- cfg-mencoder.h 9 Jan 2006 19:35:43 -0000 1.106
+++ cfg-mencoder.h 19 Feb 2006 09:34:36 -0000 1.107
@@ -221,7 +221,7 @@
{"audio-density", &audio_density, CONF_TYPE_INT, CONF_RANGE|CONF_GLOBAL, 1, 50, NULL},
{"audio-preload", &audio_preload, CONF_TYPE_FLOAT, CONF_RANGE|CONF_GLOBAL, 0, 2, NULL},
- {"audio-delay", &audio_delay_fix, CONF_TYPE_FLOAT, CONF_MIN|CONF_GLOBAL, 0, 0, NULL},
+ {"audio-delay", &audio_delay_fix, CONF_TYPE_FLOAT, CONF_GLOBAL, 0, 0, NULL},
{"x", "-x is obsolete, use -vf scale=w:h for scaling.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
{"xsize", "-xsize is obsolete, use -vf crop=w:h:x:y for cropping.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.338
retrieving revision 1.339
diff -u -r1.338 -r1.339
--- mencoder.c 19 Feb 2006 04:31:14 -0000 1.338
+++ mencoder.c 19 Feb 2006 09:34:36 -0000 1.339
@@ -723,6 +723,8 @@
}
if(out_file_format == MUXER_TYPE_MPEG) audio_preload = 0;
+muxer->audio_delay_fix = audio_delay_fix;
+
// ============= VIDEO ===============
mux_v=muxer_new_stream(muxer,MUXER_TYPE_VIDEO);
@@ -864,6 +866,8 @@
mux_v->bih->biCompression, (char *)&mux_v->bih->biCompression);
}
+ muxer->audio_delay_fix -= sh_video->stream_delay;
+
//if(demuxer->file_format!=DEMUXER_TYPE_AVI) pts_from_bps=0; // it must be 0 for mpeg/asf!
// ============= AUDIO ===============
@@ -942,7 +946,6 @@
mux_a->h.dwSampleSize=sh_audio->audio.dwSampleSize;
mux_a->h.dwScale=sh_audio->audio.dwScale;
mux_a->h.dwRate=sh_audio->audio.dwRate;
-// mux_a->h.dwStart=sh_audio->audio.dwStart;
} else {
mux_a->h.dwSampleSize=mux_a->wf->nBlockAlign;
mux_a->h.dwScale=mux_a->h.dwSampleSize;
@@ -958,10 +961,7 @@
if (verbose>1) print_wave_header(mux_a->wf);
-if(audio_delay_fix!=0.0){
- mux_a->h.dwStart=audio_delay_fix*mux_a->h.dwRate/mux_a->h.dwScale;
- mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_SettingAudioDelay,mux_a->h.dwStart*mux_a->h.dwScale/(float)mux_a->h.dwRate);
-}
+ muxer->audio_delay_fix += sh_audio->stream_delay;
} // if(sh_audio)
More information about the MPlayer-cvslog
mailing list