Mercurial > mplayer.hg
changeset 26473:47864c18ff54
Take audio delay into account when seeking in avisynth demuxer.
author | reimar |
---|---|
date | Wed, 23 Apr 2008 07:50:54 +0000 |
parents | 67930b46705d |
children | 5ac02417f474 |
files | libmpdemux/demux_avs.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_avs.c Wed Apr 23 07:49:51 2008 +0000 +++ b/libmpdemux/demux_avs.c Wed Apr 23 07:50:54 2008 +0000 @@ -430,6 +430,8 @@ 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);