Mercurial > mplayer.hg
diff libmpdemux/demux_mov.c @ 14877:db1f17e9b7a2
set sh_audio->delay ins audio-only case so that correct time is displayed
after seeking.
author | reimar |
---|---|
date | Tue, 01 Mar 2005 20:16:49 +0000 |
parents | 127c30674725 |
children | ed06939c5217 |
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c Tue Mar 01 19:59:20 2005 +0000 +++ b/libmpdemux/demux_mov.c Tue Mar 01 20:16:49 2005 +0000 @@ -1889,6 +1889,8 @@ //if(flags&2) pts*=(float)trak->length/(float)trak->timescale; //if(!(flags&1)) pts+=ds->pts; ds->pts=mov_seek_track(trak,pts,flags); + if (demuxer->video->id < 0) + ((sh_audio_t*)ds->sh)->delay = ds->pts; } }