]> git.sesse.net Git - vlc/blobdiff - modules/demux/rawvid.c
Declared many static variables const
[vlc] / modules / demux / rawvid.c
index ca6d8eb92861bdb641d542925fe81bf3ef239835..542f20ab6f1b63f50f179c77e3ae71d2b2ad83b6 100644 (file)
@@ -109,7 +109,7 @@ struct preset_t
     const char *psz_chroma;
 };
 
-static struct preset_t p_presets[] =
+static const struct preset_t p_presets[] =
 {
     { "sqcif", 128, 96, 29.97, "4:3", "YV12" },
     { "qcif", 176, 144, 29.97, "4:3", "YV12" },
@@ -133,7 +133,7 @@ static int Open( vlc_object_t * p_this )
     uint32_t i_chroma;
     char *psz_aspect_ratio;
     unsigned int i_aspect = 0;
-    struct preset_t *p_preset = NULL;
+    const struct preset_t *p_preset = NULL;
     const uint8_t *p_peek;
     bool b_valid = false;
     bool b_y4m = false;
@@ -182,7 +182,8 @@ static int Open( vlc_object_t * p_this )
     {
         char *psz;
         char *buf;
-        int a, b = 1;
+        int a = 1;
+        int b = 1;
         psz = stream_ReadLine( p_demux->s );
 
         /* TODO: handle interlacing */