From 8cac01f82450b409212859c33d867b75abc5131e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sat, 24 Mar 2007 03:14:15 +0000 Subject: Make sure that the big tables are both static and const, so that they don't get loaded into shared memory for copy-on-write. CVS patchset: 8745 CVS date: 2007/03/24 03:14:15 --- src/demuxers/demux_mpgaudio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_mpgaudio.c b/src/demuxers/demux_mpgaudio.c index 6c0b6031c..7f0a448d9 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.151 2007/03/03 01:41:16 dgp85 Exp $ + * $Id: demux_mpgaudio.c,v 1.152 2007/03/24 03:14:15 dgp85 Exp $ * * demultiplexer for mpeg audio (i.e. mp3) streams * @@ -166,7 +166,7 @@ typedef struct { /* bitrate table[mpeg version][layer][bitrate index] * values stored in kbps */ -const int mp3_bitrates[3][3][16] = { +static const int mp3_bitrates[3][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,} }, @@ -179,21 +179,21 @@ const int mp3_bitrates[3][3][16] = { }; /* frequency table[mpeg version][frequence index] (in KHz) */ -static int mp3_freqs[3][3] = { +static const int mp3_freqs[3][3] = { { 44100, 48000, 32000 }, { 22050, 24000, 16000 }, { 11025, 12000, 8000 } }; /* samples per frame table[mpeg version][layer] */ -static int mp3_samples[3][3] = { +static const int mp3_samples[3][3] = { { 384, 1152, 1152 }, { 384, 1152, 576 }, { 384, 1152, 576 } }; /* samples per frame table[layer][padding bit] */ -static int mp3_paddings[3][2] = { +static const int mp3_paddings[3][2] = { { 0, 4 }, { 0, 1 }, { 0, 1 } -- cgit v1.2.3