comparison libmpdemux/mp3_hdr.c @ 30732:355873f64ce7

Remove unused static function mp_mp3_get_lsf().
author cehoyos
date Sat, 27 Feb 2010 21:29:06 +0000
parents 32725ca88fed
children becaa4804918
comparison
equal deleted inserted replaced
30731:5a1ab9923c3a 30732:355873f64ce7
35 }; 35 };
36 36
37 static long freqs[9] = { 44100, 48000, 32000, // MPEG 1.0 37 static long freqs[9] = { 44100, 48000, 32000, // MPEG 1.0
38 22050, 24000, 16000, // MPEG 2.0 38 22050, 24000, 16000, // MPEG 2.0
39 11025, 12000, 8000}; // MPEG 2.5 39 11025, 12000, 8000}; // MPEG 2.5
40
41 static int mp_mp3_get_lsf(unsigned char* hbuf){
42 unsigned long newhead =
43 hbuf[0] << 24 |
44 hbuf[1] << 16 |
45 hbuf[2] << 8 |
46 hbuf[3];
47 if( newhead & ((long)1<<20) ) {
48 return (newhead & ((long)1<<19)) ? 0x0 : 0x1;
49 }
50 return 1;
51 }
52 40
53 /* 41 /*
54 * return frame size or -1 (bad frame) 42 * return frame size or -1 (bad frame)
55 */ 43 */
56 int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* srate, int* spf, int* mpa_layer, int* br){ 44 int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* srate, int* spf, int* mpa_layer, int* br){