mirror of https://github.com/mpv-player/mpv
mp_mp3_get_lsf() added - to get decomp. frame size
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5807 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d6b84b02ef
commit
cb4a546f54
|
@ -16,6 +16,18 @@ static int tabsel_123[2][3][16] = {
|
||||||
};
|
};
|
||||||
static long freqs[9] = { 44100, 48000, 32000, 22050, 24000, 16000 , 11025 , 12000 , 8000 };
|
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)
|
* return frame size or -1 (bad frame)
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue