From 7be523c015a18ffcfbdd9511e225609729b25a0c Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Thu, 4 Mar 2004 20:50:32 +0000 Subject: clean up a bit git-svn-id: https://svn.musicpd.org/mpd/trunk@195 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/mp3_decode.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/mp3_decode.c b/src/mp3_decode.c index e417e0a04..780c3814c 100644 --- a/src/mp3_decode.c +++ b/src/mp3_decode.c @@ -290,17 +290,14 @@ int decodeFirstFrame(mp3DecodeData * data) { memset(&xing,0,sizeof(struct xing)); xing.flags = 0; - skip = 0; while(1) { - printf("HERE 1\n"); + skip = 0; while((ret = decodeNextFrameHeader(data))==DECODE_CONT); if(ret==DECODE_SKIP) skip = 1; - if(ret==DECODE_BREAK) return -1; + else if(ret==DECODE_BREAK) return -1; while((ret = decodeNextFrame(data))==DECODE_CONT); if(ret==DECODE_BREAK) return -1; - if(ret==DECODE_SKIP) skip = 1; - else if(skip && ret==DECODE_OK) skip = 0; - else if(!skip && ret==DECODE_OK) break; + if(!skip && ret==DECODE_OK) break; } if(parse_xing(&xing,data->stream.anc_ptr,data->stream.anc_bitlen)) { -- cgit v1.2.3