Mercurial > mplayer.hg
comparison libmpdemux/demux_demuxers.c @ 18710:c528c6c518f1
Clean up audio pts handling, make audio pts tracking in the audio-only
case work the same as with video.
author | uau |
---|---|
date | Wed, 14 Jun 2006 19:48:54 +0000 |
parents | f72bc5754209 |
children | 5c8acc972551 |
comparison
equal
deleted
inserted
replaced
18709:7ca8f5ab5136 | 18710:c528c6c518f1 |
---|---|
76 sh_audio_t* sh = (sh_audio_t*)demuxer->audio->sh; | 76 sh_audio_t* sh = (sh_audio_t*)demuxer->audio->sh; |
77 demux_seek(priv->ad,pos,audio_delay,1); | 77 demux_seek(priv->ad,pos,audio_delay,1); |
78 // In case the demuxer don't set pts | 78 // In case the demuxer don't set pts |
79 if(!demuxer->audio->pts) | 79 if(!demuxer->audio->pts) |
80 demuxer->audio->pts = pos-((ds_tell_pts(demuxer->audio)-sh->a_in_buffer_len)/(float)sh->i_bps); | 80 demuxer->audio->pts = pos-((ds_tell_pts(demuxer->audio)-sh->a_in_buffer_len)/(float)sh->i_bps); |
81 sh->delay = 0; | |
82 } | 81 } |
83 | 82 |
84 if(priv->sd != priv->vd) | 83 if(priv->sd != priv->vd) |
85 demux_seek(priv->sd,pos,audio_delay,1); | 84 demux_seek(priv->sd,pos,audio_delay,1); |
86 | 85 |