diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-23 07:52:51 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-23 07:52:51 +0000 |
commit | be75a5f7d70a5d2493c98632658de5076b1f6bff (patch) | |
tree | 42171bb7cd246c89574f1d484edbe6f714340882 /libmpcodecs/ad_hwmpa.c | |
parent | f87e61e782b65e09f6b8c3caa9e0f55aaf5208cb (diff) | |
download | mpv-be75a5f7d70a5d2493c98632658de5076b1f6bff.tar.bz2 mpv-be75a5f7d70a5d2493c98632658de5076b1f6bff.tar.xz |
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
Diffstat (limited to 'libmpcodecs/ad_hwmpa.c')
-rw-r--r-- | libmpcodecs/ad_hwmpa.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libmpcodecs/ad_hwmpa.c b/libmpcodecs/ad_hwmpa.c index b1dfe1a0a8..642580ee1c 100644 --- a/libmpcodecs/ad_hwmpa.c +++ b/libmpcodecs/ad_hwmpa.c @@ -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) { |