view libmpdemux/mp3_hdr.h @ 7787:05e518badc1b

doc fixes part 1 (more will come when i find the time to read the rest) if anything is not ok, please let me know documentation.html: * OGG -> OGG/OGM (both file formats are supported) * somewhat better wording (no real change of meaning) * update of the current xf86 version from 4.2.0 to 4.2.1 * mga_vid is not old * partial sync of the options with the manpage (someone with deeper knwoledge should check them and finish the sync) * added 2 links about quoting and correct writing of mails to the mailinglists formats.html: * fixing typo interleaved -> non-interleaved (at least i think it's a typo please someone check it) * non-interleaved AVIs should be played with -ni * OGG -> OGG/OGM
author attila
date Fri, 18 Oct 2002 17:57:05 +0000
parents e29f95ed5d36
children 980910eb6f0c
line wrap: on
line source


int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* freq);

#define mp_decode_mp3_header(hbuf)  mp_get_mp3_header(hbuf,NULL,NULL)

static inline int mp_check_mp3_header(unsigned int head){
    if( (head & 0x0000e0ff) != 0x0000e0ff ||  
        (head & 0x00fc0000) == 0x00fc0000) return 0;
    if(mp_decode_mp3_header((unsigned char*)(&head))<=0) return 0;
    return 1;
}