summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-03-17 11:51:07 +0100
committerDiego Biurrun <diego@biurrun.de>2016-03-30 17:19:13 +0200
commitbd016dbf23e8e7dc34ff2696912575f7620cec0d (patch)
tree3cb62bcfeb5aa2d84397e3413c535a525146df5e
parent061dc20351bf3b8a237216d2b39d3a3b736d1916 (diff)
downloadffmpeg-streaming-bd016dbf23e8e7dc34ff2696912575f7620cec0d.zip
ffmpeg-streaming-bd016dbf23e8e7dc34ff2696912575f7620cec0d.tar.gz
Mark tables used only within their files as static
-rw-r--r--libavcodec/dxtory.c6
-rw-r--r--libavcodec/escape130.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/dxtory.c b/libavcodec/dxtory.c
index 0a6f331..01726b9 100644
--- a/libavcodec/dxtory.c
+++ b/libavcodec/dxtory.c
@@ -171,9 +171,9 @@ static int dxtory_decode_v1_444(AVCodecContext *avctx, AVFrame *pic,
return 0;
}
-const uint8_t def_lru[8] = { 0x00, 0x20, 0x40, 0x60, 0x80, 0xA0, 0xC0, 0xFF };
-const uint8_t def_lru_555[8] = { 0x00, 0x08, 0x10, 0x18, 0x1F };
-const uint8_t def_lru_565[8] = { 0x00, 0x08, 0x10, 0x20, 0x30, 0x3F };
+static const uint8_t def_lru[8] = { 0x00, 0x20, 0x40, 0x60, 0x80, 0xA0, 0xC0, 0xFF };
+static const uint8_t def_lru_555[8] = { 0x00, 0x08, 0x10, 0x18, 0x1F };
+static const uint8_t def_lru_565[8] = { 0x00, 0x08, 0x10, 0x20, 0x30, 0x3F };
static inline uint8_t decode_sym(GetBitContext *gb, uint8_t lru[8])
{
diff --git a/libavcodec/escape130.c b/libavcodec/escape130.c
index f134138..e69e42e 100644
--- a/libavcodec/escape130.c
+++ b/libavcodec/escape130.c
@@ -105,7 +105,7 @@ static const int8_t chroma_adjust[2][8] = {
{ 0, 1, 1, 1, 0, -1, -1, -1 }
};
-const uint8_t chroma_vals[] = {
+static const uint8_t chroma_vals[] = {
20, 28, 36, 44, 52, 60, 68, 76,
84, 92, 100, 106, 112, 116, 120, 124,
128, 132, 136, 140, 144, 150, 156, 164,
OpenPOWER on IntegriCloud