mirror of
https://github.com/mpv-player/mpv
synced 2025-02-26 02:05:31 +00:00
don't do the work of mp_get_mp3_header() and, as a side effect, prevent a deadlock due to a missed cnt++
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19163 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f87e61e782
commit
be75a5f7d7
@ -35,8 +35,6 @@ static int mpa_sync(sh_audio_t *sh, int no_frames, int *n, int *chans, int *srat
|
||||
{
|
||||
while(cnt + 4 < sh->a_in_buffer_len)
|
||||
{
|
||||
if(((sh->a_in_buffer[cnt] << 8) | sh->a_in_buffer[cnt+1]) & 0xffe0 != 0xffe0)
|
||||
continue;
|
||||
x = mp_get_mp3_header(&(sh->a_in_buffer[cnt]), chans, srate, spf, mpa_layer, br);
|
||||
if(x > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user