From be75a5f7d70a5d2493c98632658de5076b1f6bff Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sun, 23 Jul 2006 07:52:51 +0000 Subject: [PATCH] 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 --- libmpcodecs/ad_hwmpa.c | 2 -- 1 file changed, 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) {