summaryrefslogtreecommitdiffstats
path: root/libmpdemux/mp3_hdr.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-07-04 21:04:14 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-07-04 21:04:14 +0000
commit94e79f44328e86b630bfefc26e34fc2e99c083a6 (patch)
treea4309ae543972467085e176fed1c11062fb73d1a /libmpdemux/mp3_hdr.c
parenta63bbf43fd3ac0ef743d0cb41c474273013b779f (diff)
downloadmpv-94e79f44328e86b630bfefc26e34fc2e99c083a6.tar.bz2
mpv-94e79f44328e86b630bfefc26e34fc2e99c083a6.tar.xz
codmetics (noticed by Alex)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10371 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/mp3_hdr.c')
-rw-r--r--libmpdemux/mp3_hdr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libmpdemux/mp3_hdr.c b/libmpdemux/mp3_hdr.c
index 6f60d7e31e..53528d9fbe 100644
--- a/libmpdemux/mp3_hdr.c
+++ b/libmpdemux/mp3_hdr.c
@@ -17,7 +17,7 @@ static int tabsel_123[2][3][16] = {
static long freqs[9] = { 44100, 48000, 32000, // MPEG 1.0
22050, 24000, 16000, // MPEG 2.0
- 11025, 12000 , 8000 }; // MPEG 2.5
+ 11025, 12000, 8000}; // MPEG 2.5
int mp_mp3_get_lsf(unsigned char* hbuf){
unsigned long newhead =
@@ -57,10 +57,10 @@ int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* srate){
return -1;
}
- sampling_frequency = ((newhead>>10)&0x3);
+ sampling_frequency = ((newhead>>10)&0x3); // valid: 0..2
if(sampling_frequency==3){
mp_msg(MSGT_DEMUXER,MSGL_DBG2,"invalid sampling_frequency\n");
- return -1; // valid: 0..8
+ return -1;
}
if( newhead & ((long)1<<20) ) {
@@ -74,7 +74,7 @@ int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* srate){
}
// crc = ((newhead>>16)&0x1)^0x1;
- bitrate_index = ((newhead>>12)&0xf);
+ bitrate_index = ((newhead>>12)&0xf); // valid: 1..14
padding = ((newhead>>9)&0x1);
// fr->extension = ((newhead>>8)&0x1);
// fr->mode = ((newhead>>6)&0x3);
@@ -101,7 +101,7 @@ int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* srate){
if(!framesize){
mp_msg(MSGT_DEMUXER,MSGL_DBG2,"invalid framesize/bitrate_index\n");
- return -1; // valid: 1..14
+ return -1;
}
framesize /= freqs[sampling_frequency]<<lsf;