avdevice/vfwcap: make constant arrays static
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Aug 2013 20:24:31 +0000 (22:24 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Aug 2013 20:24:31 +0000 (22:24 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/vfwcap.c

index 66b02be..014f18c 100644 (file)
@@ -155,7 +155,7 @@ static void dump_bih(AVFormatContext *s, BITMAPINFOHEADER *bih)
 static int shall_we_drop(AVFormatContext *s)
 {
     struct vfw_ctx *ctx = s->priv_data;
-    const uint8_t dropscore[] = {62, 75, 87, 100};
+    static const uint8_t dropscore[] = {62, 75, 87, 100};
     const int ndropscores = FF_ARRAY_ELEMS(dropscore);
     unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer;