From c0ef5d6c169fb0668e2ba029f9cc34ad32db9520 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 3 Aug 2013 22:24:31 +0200 Subject: [PATCH] avdevice/vfwcap: make constant arrays static Signed-off-by: Michael Niedermayer --- libavdevice/vfwcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c index 66b02befdaec7..014f18c27e6bb 100644 --- a/libavdevice/vfwcap.c +++ b/libavdevice/vfwcap.c @@ -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;