Rev 4583 | Rev 7174 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4583 | Rev 5485 | ||
---|---|---|---|
Line 759... | Line 759... | ||
759 | } |
759 | } |
Line 760... | Line 760... | ||
760 | 760 | ||
761 | DWORD test_mp3(char *buf) |
761 | DWORD test_mp3(char *buf) |
762 | { unsigned long hdr; |
762 | { unsigned long hdr; |
- | 763 | WAVEHEADER whdr; |
|
Line 763... | Line 764... | ||
763 | WAVEHEADER whdr; |
764 | int attempts = 0; |
764 | 765 | ||
765 | while (1) |
766 | for (;;attempts++) |
766 | { if(rd.filepos > 102400) |
767 | { if(attempts > 1000) |
767 | return 0; |
768 | return 0; |
768 | if(!rd.head_read(&rd,&hdr)) |
769 | if(!rd.head_read(&rd,&hdr)) |
769 | return 0; |
770 | return 0; |