Mercurial > libavformat.hg
comparison matroska.c @ 1123:6992dd78ff68 libavformat
Add (mostly) const to variable and parameter declaration, where a char* was
used and 'const char*' should be, plus make some function declarations
static if they aren't used outside their declaring source file.
patch by Stefan Huehner stefan%%at%%huehner%%dot%%org
author | diego |
---|---|
date | Sat, 17 Jun 2006 15:53:23 +0000 |
parents | 801d4a5cf353 |
children | d89d7ef290da |
comparison
equal
deleted
inserted
replaced
1122:f8ee5a4b576e | 1123:6992dd78ff68 |
---|---|
181 /* | 181 /* |
182 * Matroska Codec IDs. Strings. | 182 * Matroska Codec IDs. Strings. |
183 */ | 183 */ |
184 | 184 |
185 typedef struct CodecTags{ | 185 typedef struct CodecTags{ |
186 char *str; | 186 const char *str; |
187 enum CodecID id; | 187 enum CodecID id; |
188 }CodecTags; | 188 }CodecTags; |
189 | 189 |
190 #define MATROSKA_CODEC_ID_VIDEO_VFW_FOURCC "V_MS/VFW/FOURCC" | 190 #define MATROSKA_CODEC_ID_VIDEO_VFW_FOURCC "V_MS/VFW/FOURCC" |
191 #define MATROSKA_CODEC_ID_AUDIO_ACM "A_MS/ACM" | 191 #define MATROSKA_CODEC_ID_AUDIO_ACM "A_MS/ACM" |
192 | 192 |
193 CodecTags codec_tags[]={ | 193 static CodecTags codec_tags[]={ |
194 // {"V_MS/VFW/FOURCC" , CODEC_ID_NONE}, | 194 // {"V_MS/VFW/FOURCC" , CODEC_ID_NONE}, |
195 {"V_UNCOMPRESSED" , CODEC_ID_RAWVIDEO}, | 195 {"V_UNCOMPRESSED" , CODEC_ID_RAWVIDEO}, |
196 {"V_MPEG4/ISO/SP" , CODEC_ID_MPEG4}, | 196 {"V_MPEG4/ISO/SP" , CODEC_ID_MPEG4}, |
197 {"V_MPEG4/ISO/ASP" , CODEC_ID_MPEG4}, | 197 {"V_MPEG4/ISO/ASP" , CODEC_ID_MPEG4}, |
198 {"V_MPEG4/ISO/AP" , CODEC_ID_MPEG4}, | 198 {"V_MPEG4/ISO/AP" , CODEC_ID_MPEG4}, |