]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/vfwcap.c
bktr: Use memset(0) instead of zero initialization for struct sigaction
[ffmpeg] / libavdevice / vfwcap.c
index b0b2086883ba63cbfab02737f14840bbddd15bad..9edd2c5f302f285f20a426518ad2b22272614d44 100644 (file)
@@ -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;