[Mplayer-cvslog] CVS: main/libmpdemux mp3_hdr.c,1.3,1.4
Arpi of Ize
arpi at mplayerhq.hu
Wed Apr 24 02:49:08 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv3872
Modified Files:
mp3_hdr.c
Log Message:
mp_mp3_get_lsf() added - to get decomp. frame size
Index: mp3_hdr.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/mp3_hdr.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mp3_hdr.c 14 Feb 2002 13:04:35 -0000 1.3
+++ mp3_hdr.c 24 Apr 2002 00:49:06 -0000 1.4
@@ -16,6 +16,18 @@
};
static long freqs[9] = { 44100, 48000, 32000, 22050, 24000, 16000 , 11025 , 12000 , 8000 };
+int mp_mp3_get_lsf(unsigned char* hbuf){
+ unsigned long newhead =
+ hbuf[0] << 24 |
+ hbuf[1] << 16 |
+ hbuf[2] << 8 |
+ hbuf[3];
+ if( newhead & ((long)1<<20) ) {
+ return (newhead & ((long)1<<19)) ? 0x0 : 0x1;
+ }
+ return 1;
+}
+
/*
* return frame size or -1 (bad frame)
*/
More information about the MPlayer-cvslog
mailing list