Mercurial > mplayer.hg
diff libmpdemux/demux_asf.c @ 13310:c629f7ac9b9f
fix seeking in audio-only case (crash when seeking backwards, time reset to 0)
author | reimar |
---|---|
date | Sat, 11 Sep 2004 09:40:34 +0000 |
parents | e427e3cc26c1 |
children | 8769fa370f83 |
line wrap: on
line diff
--- a/libmpdemux/demux_asf.c Sat Sep 11 09:28:39 2004 +0000 +++ b/libmpdemux/demux_asf.c Sat Sep 11 09:40:34 2004 +0000 @@ -383,12 +383,16 @@ // printf("\r -- asf: newpos=%d -- \n",newpos); stream_seek(demuxer->stream,newpos); + if (d_video->id >= 0) ds_fill_buffer(d_video); if(sh_audio){ ds_fill_buffer(d_audio); resync_audio_stream(sh_audio); } + if (d_video->id < 0) + sh_audio->delay = d_audio->pts; + else while(1){ if(sh_audio && !d_audio->eof){ float a_pts=d_audio->pts;