comparison oggdec.c @ 3767:11169564fbdc libavformat

Make ogg_codec_t descriptions const
author reimar
date Sun, 24 Aug 2008 17:09:15 +0000
parents ac8b6b83e61e
children 6c71b789c69e
comparison
equal deleted inserted replaced
3766:f062deeedb8d 3767:11169564fbdc
35 #include "avformat.h" 35 #include "avformat.h"
36 36
37 #define MAX_PAGE_SIZE 65307 37 #define MAX_PAGE_SIZE 65307
38 #define DECODER_BUFFER_SIZE MAX_PAGE_SIZE 38 #define DECODER_BUFFER_SIZE MAX_PAGE_SIZE
39 39
40 static ogg_codec_t *ogg_codecs[] = { 40 static const ogg_codec_t * const ogg_codecs[] = {
41 &speex_codec, 41 &speex_codec,
42 &vorbis_codec, 42 &vorbis_codec,
43 &theora_codec, 43 &theora_codec,
44 &flac_codec, 44 &flac_codec,
45 &old_flac_codec, 45 &old_flac_codec,
124 ogg->curidx = -1; 124 ogg->curidx = -1;
125 125
126 return 0; 126 return 0;
127 } 127 }
128 128
129 static ogg_codec_t * 129 static const ogg_codec_t *
130 ogg_find_codec (uint8_t * buf, int size) 130 ogg_find_codec (uint8_t * buf, int size)
131 { 131 {
132 int i; 132 int i;
133 133
134 for (i = 0; ogg_codecs[i]; i++) 134 for (i = 0; ogg_codecs[i]; i++)