summaryrefslogtreecommitdiff
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-06-07 13:22:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-07 13:23:04 +0200
commit7a8228c05e23d85b11a3853bf25a7ddbc662e2e3 (patch)
tree3fc2a066c18682581899ae2dfce2d0f33ef891f2 /libswscale
parent4ae28eb85351528e37ded59336e3f763497813b7 (diff)
sws: make dither_scale const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c2
-rw-r--r--libswscale/swscale_internal.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 29c26e87ac..68258f2f69 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -271,7 +271,7 @@ DECLARE_ALIGNED(8, const uint8_t, dithers)[8][8][8]={
static const uint8_t flat64[8]={64,64,64,64,64,64,64,64};
-uint16_t dither_scale[15][16]={
+const uint16_t dither_scale[15][16]={
{ 2, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,},
{ 2, 3, 7, 7, 13, 13, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,},
{ 3, 3, 4, 15, 15, 29, 57, 57, 57, 113, 113, 113, 113, 113, 113, 113,},
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 16e7d3288c..1403e7dd20 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -498,7 +498,7 @@ const char *sws_format_name(enum PixelFormat format);
extern const uint64_t ff_dither4[2];
extern const uint64_t ff_dither8[2];
extern const uint8_t dithers[8][8][8];
-extern uint16_t dither_scale[15][16];
+extern const uint16_t dither_scale[15][16];
extern const AVClass sws_context_class;