[MPlayer-cvslog] CVS: main mencoder.c, 1.336, 1.337 mplayer.c, 1.907, 1.908
Corey Hickey CVS
syncmail at mplayerhq.hu
Fri Feb 17 02:57:43 CET 2006
- Previous message: [MPlayer-cvslog] CVS: main/libmpcodecs dec_audio.c,1.49,1.50
- Next message: [MPlayer-cvslog] CVS: main/libmpdemux demux_aac.c, 1.6, 1.7 demux_asf.c, 1.43, 1.44 demux_audio.c, 1.43, 1.44 demux_avi.c, 1.72, 1.73 demux_avs.c, 1.8, 1.9 demux_demuxers.c, 1.9, 1.10 demux_film.c, 1.16, 1.17 demux_fli.c, 1.13, 1.14 demux_lavf.c, 1.27, 1.28 demux_mf.c, 1.17, 1.18 demux_mov.c, 1.138, 1.139 demux_mpc.c, 1.12, 1.13 demux_mpg.c, 1.71, 1.72 demux_nsv.c, 1.14, 1.15 demux_nuv.c, 1.18, 1.19 demux_ogg.c, 1.87, 1.88 demux_pva.c, 1.9, 1.10 demux_rawaudio.c, 1.15, 1.16 demux_rawdv.c, 1.14, 1.15 demux_rawvideo.c, 1.11, 1.12 demux_real.c, 1.88, 1.89 demux_realaud.c, 1.13, 1.14 demux_ts.c, 1.44, 1.45 demux_ty.c, 1.15, 1.16 demux_vqf.c, 1.8, 1.9 demux_xmms.c, 1.14, 1.15 demux_y4m.c, 1.12, 1.13 demuxer.c, 1.216, 1.217 demuxer.h, 1.90, 1.91
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Corey Hickey CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv1293
Modified Files:
mencoder.c mplayer.c
Log Message:
Second-try commit of this patch.
1. Include audio_delay as an argument to demux_seek.
2. Modify demux_seek_avi to adjust the audio/video stream positions so
that mplayer/mencoder will instantly be in sync even when -delay is
specified.
I've quadruple checked this time; hopefully I haven't missed anything.
Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.336
retrieving revision 1.337
diff -u -r1.336 -r1.337
--- mencoder.c 11 Feb 2006 21:29:03 -0000 1.336
+++ mencoder.c 17 Feb 2006 01:57:40 -0000 1.337
@@ -1037,12 +1037,12 @@
else
sscanf(seek_to_sec, "%f", &d);
- demux_seek(demuxer, d, 1);
+ demux_seek(demuxer, d, audio_delay, 1);
// there is 2 way to handle the -ss option in 3-pass mode:
// > 1. do the first pass for the whole file, and use -ss for 2nd/3rd pases only
// > 2. do all the 3 passes with the same -ss value
// this line enables behaviour 1. (and kills 2. at the same time):
-// if(demuxer2) demux_seek(demuxer2, d, 1);
+// if(demuxer2) demux_seek(demuxer2, d, audio_delay, 1);
}
if (out_file_format == MUXER_TYPE_MPEG)
@@ -1770,7 +1770,7 @@
if (sh_video->pts >= next_edl_record->stop_sec) return 1; // nothing to do...
if (!edl_seek_type) {
- if(demux_seek(demuxer, next_edl_record->stop_sec - sh_video->pts, 0)){
+ if(demux_seek(demuxer, next_edl_record->stop_sec - sh_video->pts, audio_delay, 0)){
sh_video->pts = demuxer->video->pts;
//if (vo_vobsub) vobsub_seek(vo_vobsub,sh_video->pts);
resync_video_stream(sh_video);
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.907
retrieving revision 1.908
diff -u -r1.907 -r1.908
--- mplayer.c 9 Feb 2006 19:39:50 -0000 1.907
+++ mplayer.c 17 Feb 2006 01:57:40 -0000 1.908
@@ -4185,7 +4185,7 @@
if(rel_seek_secs || abs_seek_pos){
current_module="seek";
- if(demux_seek(demuxer,rel_seek_secs,abs_seek_pos)){
+ if(demux_seek(demuxer,rel_seek_secs,audio_delay,abs_seek_pos)){
// success:
/* FIXME there should be real seeking for vobsub */
if(sh_video) sh_video->pts=d_video->pts;
- Previous message: [MPlayer-cvslog] CVS: main/libmpcodecs dec_audio.c,1.49,1.50
- Next message: [MPlayer-cvslog] CVS: main/libmpdemux demux_aac.c, 1.6, 1.7 demux_asf.c, 1.43, 1.44 demux_audio.c, 1.43, 1.44 demux_avi.c, 1.72, 1.73 demux_avs.c, 1.8, 1.9 demux_demuxers.c, 1.9, 1.10 demux_film.c, 1.16, 1.17 demux_fli.c, 1.13, 1.14 demux_lavf.c, 1.27, 1.28 demux_mf.c, 1.17, 1.18 demux_mov.c, 1.138, 1.139 demux_mpc.c, 1.12, 1.13 demux_mpg.c, 1.71, 1.72 demux_nsv.c, 1.14, 1.15 demux_nuv.c, 1.18, 1.19 demux_ogg.c, 1.87, 1.88 demux_pva.c, 1.9, 1.10 demux_rawaudio.c, 1.15, 1.16 demux_rawdv.c, 1.14, 1.15 demux_rawvideo.c, 1.11, 1.12 demux_real.c, 1.88, 1.89 demux_realaud.c, 1.13, 1.14 demux_ts.c, 1.44, 1.45 demux_ty.c, 1.15, 1.16 demux_vqf.c, 1.8, 1.9 demux_xmms.c, 1.14, 1.15 demux_y4m.c, 1.12, 1.13 demuxer.c, 1.216, 1.217 demuxer.h, 1.90, 1.91
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list