diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-23 07:50:54 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-23 07:50:54 +0000 |
commit | ea35e0563dfd2e59907411faf9998f48de0bea48 (patch) | |
tree | 891d91769da37bd9fe1e51f98ddce4c9bedd4b9a | |
parent | 4fd37efa40c920913774b0aac01347624f08a1b7 (diff) |
Take audio delay into account when seeking in avisynth demuxer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26505 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/demux_avs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/demux_avs.c b/libmpdemux/demux_avs.c index 96ac765174..2f8ec46bde 100644 --- a/libmpdemux/demux_avs.c +++ b/libmpdemux/demux_avs.c @@ -430,6 +430,8 @@ static void demux_seek_avs(demuxer_t *demuxer, float rel_seek_secs, float audio_ 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); |