diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-10-02 15:54:51 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-10-02 15:54:51 +0000 |
commit | 0c93a109e5fc368124cf5f07eaebaa8c4776ba7a (patch) | |
tree | 5663c56182131361ea612aff98764610eed96944 /src/demuxers/demux_mpgaudio.c | |
parent | 6e6533f9d5953f32ea1b415fbf97b31f7f07e6d5 (diff) | |
download | xine-lib-0c93a109e5fc368124cf5f07eaebaa8c4776ba7a.tar.gz xine-lib-0c93a109e5fc368124cf5f07eaebaa8c4776ba7a.tar.bz2 |
mark some global arrays that must never be changed (multiple plugin
instances) as const
CVS patchset: 2769
CVS date: 2002/10/02 15:54:51
Diffstat (limited to 'src/demuxers/demux_mpgaudio.c')
-rw-r--r-- | src/demuxers/demux_mpgaudio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/demuxers/demux_mpgaudio.c b/src/demuxers/demux_mpgaudio.c index 77109642a..6c1289834 100644 --- a/src/demuxers/demux_mpgaudio.c +++ b/src/demuxers/demux_mpgaudio.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_mpgaudio.c,v 1.62 2002/09/18 22:12:17 guenter Exp $ + * $Id: demux_mpgaudio.c,v 1.63 2002/10/02 15:54:51 mroi Exp $ * * demultiplexer for mpeg audio (i.e. mp3) streams * @@ -87,7 +87,7 @@ typedef struct { /* bitrate table tabsel_123[mpeg version][layer][bitrate index] */ -int tabsel_123[2][3][16] = { +const int tabsel_123[2][3][16] = { { {0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,}, {0,32,48,56, 64, 80, 96,112,128,160,192,224,256,320,384,}, {0,32,40,48, 56, 64, 80, 96,112,128,160,192,224,256,320,} }, @@ -98,7 +98,8 @@ int tabsel_123[2][3][16] = { }; /* sampling rate frequency table */ -long freqs[9] = { 44100, 48000, 32000, +const long freqs[9] = { + 44100, 48000, 32000, 22050, 24000, 16000 , 11025 , 12000 , 8000 }; |