summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-16 12:38:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-16 12:40:32 +0200
commit1ef0b8f9cc072be5b70af100b6d63dbbcc9cc260 (patch)
tree23ab8275f66acfa5da4abc88e03737e9159b3f15
parent7372177a08c0fda59bc01abe44199b68953c3c70 (diff)
parentd258531502b24cb653204fe4f003c8815755bdc4 (diff)
Merge commit 'd258531502b24cb653204fe4f003c8815755bdc4'
* commit 'd258531502b24cb653204fe4f003c8815755bdc4': swscale: Mark a bunch of tables only used within one file static Conflicts: libswscale/swscale_unscaled.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libswscale/swscale.c4
-rw-r--r--libswscale/swscale_internal.h1
-rw-r--r--libswscale/swscale_unscaled.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 87b867d2b7..db416022bf 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -46,7 +46,7 @@ DECLARE_ALIGNED(8, const uint8_t, dither_8x8_128)[8][8] = {
{ 112, 16, 104, 8, 118, 22, 110, 14, },
};
-DECLARE_ALIGNED(8, const uint8_t, ff_sws_pb_64)[8] = {
+DECLARE_ALIGNED(8, static const uint8_t, sws_pb_64)[8] = {
64, 64, 64, 64, 64, 64, 64, 64
};
@@ -448,7 +448,7 @@ static int swScale(SwsContext *c, const uint8_t *src[],
}
if (!should_dither) {
- c->chrDither8 = c->lumDither8 = ff_sws_pb_64;
+ c->chrDither8 = c->lumDither8 = sws_pb_64;
}
lastDstY = dstY;
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index bd5628d081..1b054614cb 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -814,7 +814,6 @@ static av_always_inline int usePal(enum AVPixelFormat pix_fmt)
extern const uint64_t ff_dither4[2];
extern const uint64_t ff_dither8[2];
-extern const uint8_t dithers[8][8][8];
extern const AVClass sws_context_class;
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index 49338839d4..88187211fd 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -34,7 +34,7 @@
#include "libavutil/pixdesc.h"
#include "libavutil/avassert.h"
-DECLARE_ALIGNED(8, const uint8_t, dithers)[8][8][8]={
+DECLARE_ALIGNED(8, static const uint8_t, dithers)[8][8][8]={
{
{ 0, 1, 0, 1, 0, 1, 0, 1,},
{ 1, 0, 1, 0, 1, 0, 1, 0,},