[MPlayer-cvslog] r26505 - trunk/libmpdemux/demux_avs.c
reimar
subversion at mplayerhq.hu
Wed Apr 23 09:50:54 CEST 2008
Author: reimar
Date: Wed Apr 23 09:50:54 2008
New Revision: 26505
Log:
Take audio delay into account when seeking in avisynth demuxer.
Modified:
trunk/libmpdemux/demux_avs.c
Modified: trunk/libmpdemux/demux_avs.c
==============================================================================
--- trunk/libmpdemux/demux_avs.c (original)
+++ trunk/libmpdemux/demux_avs.c Wed Apr 23 09:50:54 2008
@@ -430,6 +430,8 @@ static void demux_seek_avs(demuxer_t *de
sh_video->num_frames_decoded = AVS->frameno;
sh_video->num_frames = AVS->frameno;
}
+ video_pos += audio_delay;
+ if (video_pos < 0) video_pos = 0;
if (sh_audio)
AVS->sampleno = FFMIN(video_pos * sh_audio->samplerate,
AVS->video_info->num_audio_samples);
More information about the MPlayer-cvslog
mailing list