clean up a bit

git-svn-id: https://svn.musicpd.org/mpd/trunk@195 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-03-04 20:50:32 +00:00
parent 4893e94dae
commit 7be523c015
1 changed files with 3 additions and 6 deletions

View File

@ -290,17 +290,14 @@ int decodeFirstFrame(mp3DecodeData * data) {
memset(&xing,0,sizeof(struct xing)); memset(&xing,0,sizeof(struct xing));
xing.flags = 0; xing.flags = 0;
skip = 0;
while(1) { while(1) {
printf("HERE 1\n"); skip = 0;
while((ret = decodeNextFrameHeader(data))==DECODE_CONT); while((ret = decodeNextFrameHeader(data))==DECODE_CONT);
if(ret==DECODE_SKIP) skip = 1; 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); while((ret = decodeNextFrame(data))==DECODE_CONT);
if(ret==DECODE_BREAK) return -1; if(ret==DECODE_BREAK) return -1;
if(ret==DECODE_SKIP) skip = 1; if(!skip && ret==DECODE_OK) break;
else if(skip && ret==DECODE_OK) skip = 0;
else if(!skip && ret==DECODE_OK) break;
} }
if(parse_xing(&xing,data->stream.anc_ptr,data->stream.anc_bitlen)) { if(parse_xing(&xing,data->stream.anc_ptr,data->stream.anc_bitlen)) {