diff 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
line wrap: on
line diff
--- a/matroska.c	Fri Jun 16 20:45:29 2006 +0000
+++ b/matroska.c	Sat Jun 17 15:53:23 2006 +0000
@@ -183,14 +183,14 @@
  */
 
 typedef struct CodecTags{
-    char *str;
+    const char *str;
     enum CodecID id;
 }CodecTags;
 
 #define MATROSKA_CODEC_ID_VIDEO_VFW_FOURCC   "V_MS/VFW/FOURCC"
 #define MATROSKA_CODEC_ID_AUDIO_ACM          "A_MS/ACM"
 
-CodecTags codec_tags[]={
+static CodecTags codec_tags[]={
 //    {"V_MS/VFW/FOURCC"  , CODEC_ID_NONE},
     {"V_UNCOMPRESSED"   , CODEC_ID_RAWVIDEO},
     {"V_MPEG4/ISO/SP"   , CODEC_ID_MPEG4},