if (header->emphasis == 2) { header->sync=0; return 0; }
int get_header(FILE *file,mp3header *header){    unsigned char buffer[FRAME_HEADER_SIZE];    int fl;    if(fread(&buffer,FRAME_HEADER_SIZE,1,file)<1) {	header->sync=0;	return 0;    }    header->sync= buffer[0] >> 5;    if (header->sync != 0x7) {	header->sync=0;	return 0;    }    header->version=(buffer[0] >> 3) & 3;    if (header->version == 1) {	header->sync=0;        return 0;    }    header->layer=(buffer[0] >> 1) & 3;    header->crc=buffer[0] & 1;    header->bitrate=(buffer[1] >> 4) & 0x0F;    header->freq=(buffer[1] >> 2) & 0x3;    /* Reserved value, illegal */    if (header->freq == 3) {        header->sync=0;        return 0;    }    header->padding=(buffer[1] >>1) & 0x1;    header->extension=(buffer[1]) & 0x1;    header->mode=(buffer[2] >> 6) & 0x3;    header->mode_extension=(buffer[2] >> 4) & 0x3;    header->copyright=(buffer[2] >> 3) & 0x1;    header->original=(buffer[2] >> 2) & 0x1;    header->emphasis=(buffer[2]) & 0x3;        /* Reserved value, illegal */    if (header->emphasis == 2) {	header->sync=0;        return 0;     }    return ((fl=frame_length(header)) >= MIN_FRAME_SIZE ? fl : 0); }