Просмотр исходного кода

avdevice/dshow: make constant arrays static

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer 11 лет назад
Родитель
Сommit
8862ed7340
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      libavdevice/dshow.c

+ 1 - 1
libavdevice/dshow.c

@@ -183,7 +183,7 @@ static char *dup_wchar_to_utf8(wchar_t *w)
 static int shall_we_drop(AVFormatContext *s)
 {
     struct dshow_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;