Mercurial > mplayer.hg
comparison libmpcodecs/dec_audio.c @ 6049:4bae3caef7a9
always reser audio input buffer pointer
author | arpi |
---|---|
date | Sun, 12 May 2002 00:44:32 +0000 |
parents | 14b46420840b |
children | 523014df7d32 |
comparison
equal
deleted
inserted
replaced
6048:4301077b29d0 | 6049:4bae3caef7a9 |
---|---|
132 return -1; | 132 return -1; |
133 } | 133 } |
134 | 134 |
135 void resync_audio_stream(sh_audio_t *sh_audio) | 135 void resync_audio_stream(sh_audio_t *sh_audio) |
136 { | 136 { |
137 sh_audio->a_in_buffer_len=0; // clear audio input buffer | |
137 if(!sh_audio->inited) return; | 138 if(!sh_audio->inited) return; |
138 if(mpadec->control(sh_audio,ADCTRL_RESYNC_STREAM,NULL)==CONTROL_TRUE) return; | 139 mpadec->control(sh_audio,ADCTRL_RESYNC_STREAM,NULL); |
139 // default resync code: | |
140 sh_audio->a_in_buffer_len=0; // clear audio input buffer | |
141 } | 140 } |
142 | 141 |
143 void skip_audio_frame(sh_audio_t *sh_audio) | 142 void skip_audio_frame(sh_audio_t *sh_audio) |
144 { | 143 { |
145 if(!sh_audio->inited) return; | 144 if(!sh_audio->inited) return; |