[FFmpeg-cvslog] avdevice/dshow: make constant arrays static

Michael Niedermayer git at videolan.org
Sun Aug 4 01:26:15 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug  3 22:24:11 2013 +0200| [8862ed73403a9ed19cf37522d3aa7530cad26b19] | committer: Michael Niedermayer

avdevice/dshow: make constant arrays static

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8862ed73403a9ed19cf37522d3aa7530cad26b19
---

 libavdevice/dshow.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 8cc12f5..37efabe 100644
--- a/libavdevice/dshow.c
+++ b/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;
 



More information about the ffmpeg-cvslog mailing list