diff options
-rw-r--r-- | src/demuxers/demux_mpgaudio.c | 7 | ||||
-rw-r--r-- | src/demuxers/demux_wc3movie.c | 4 | ||||
-rw-r--r-- | src/input/mms.c | 6 |
3 files changed, 9 insertions, 8 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 }; diff --git a/src/demuxers/demux_wc3movie.c b/src/demuxers/demux_wc3movie.c index d8a9f57b4..29e35d680 100644 --- a/src/demuxers/demux_wc3movie.c +++ b/src/demuxers/demux_wc3movie.c @@ -22,7 +22,7 @@ * For more information on the MVE file format, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: demux_wc3movie.c,v 1.12 2002/10/01 04:48:32 tmmm Exp $ + * $Id: demux_wc3movie.c,v 1.13 2002/10/02 15:54:52 mroi Exp $ */ #ifdef HAVE_CONFIG_H @@ -117,7 +117,7 @@ typedef struct { } demux_mve_t; /* bizarre palette lookup table */ -unsigned char wc3_pal_lookup[] = { +const unsigned char wc3_pal_lookup[] = { 0x00, 0x03, 0x05, 0x07, 0x09, 0x0B, 0x0D, 0x0E, 0x10, 0x12, 0x13, 0x15, 0x16, 0x18, 0x19, 0x1A, 0x1C, 0x1D, 0x1F, 0x20, 0x21, 0x23, 0x24, 0x25, 0x27, 0x28, 0x29, 0x2A, 0x2C, diff --git a/src/input/mms.c b/src/input/mms.c index 235631adb..3605e5cea 100644 --- a/src/input/mms.c +++ b/src/input/mms.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: mms.c,v 1.10 2002/09/06 18:13:11 mroi Exp $ + * $Id: mms.c,v 1.11 2002/10/02 15:54:51 mroi Exp $ * * based on work from major mms * utility functions to handle communication with an mms server @@ -517,9 +517,9 @@ static void interp_header (mms_t *this) { } } -static char *mms_url_s[] = { "MMS://", "MMSU://", "MMST://", NULL }; +const static char *const mms_url_s[] = { "MMS://", "MMSU://", "MMST://", NULL }; -static int mms_valid_url (char* url, char** mms_url) { +static int mms_valid_url (char* url, const char *const * mms_url) { int i = 0; int len; |