From 5afb94c817abffad030c6b94d7003dca8aace3d5 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 11 Nov 2015 17:38:43 +0100 Subject: Mark read-only tables as static --- libavdevice/vfwcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavdevice') diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c index b0b2086883..9edd2c5f30 100644 --- a/libavdevice/vfwcap.c +++ b/libavdevice/vfwcap.c @@ -160,7 +160,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[4] = { 62, 75, 87, 100 }; const int ndropscores = FF_ARRAY_ELEMS(dropscore); unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer; -- cgit v1.2.3