[Mplayer-cvslog] CVS: main/libmpdemux mp3_hdr.h,NONE,1.1
Arpi of Ize
arpi at mplayer.dev.hu
Fri Feb 15 00:41:02 CET 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv1139
Added Files:
mp3_hdr.h
Log Message:
fast header checker added
--- NEW FILE ---
int mp_decode_mp3_header(unsigned char* hbuf);
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;
}
More information about the MPlayer-cvslog
mailing list