summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-24 03:14:15 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-24 03:14:15 +0000
commit8cac01f82450b409212859c33d867b75abc5131e (patch)
treeb144a97c9464b8bebff4e6a570f8f45f7f598675 /src
parent53fc98d09198a2058aa933c8848921ecd211861f (diff)
downloadxine-lib-8cac01f82450b409212859c33d867b75abc5131e.tar.gz
xine-lib-8cac01f82450b409212859c33d867b75abc5131e.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_mpgaudio.c10
1 files changed, 5 insertions, 5 deletions
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 }