summaryrefslogtreecommitdiff
path: root/libavcodec/snowenc.c
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2018-02-04 05:44:23 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2018-02-05 22:42:59 +0700
commitcaa4bd7a9fe9186a56fdcb8194263b066978cbbe (patch)
treeacd3e433556150ab4f80861d2bbefbf04213dbf9 /libavcodec/snowenc.c
parent118e1b0b3370dd1c0da442901b486689efd1654b (diff)
downloadffmpeg-caa4bd7a9fe9186a56fdcb8194263b066978cbbe.tar.gz
avcodec/me_cmp: remove ff_me_cmp_init_static()
Precalculate and constify ff_square_tab. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r--libavcodec/snowenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index 4fec377591..61a658fa44 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -179,7 +179,7 @@ static int pix_sum(uint8_t * pix, int line_size, int w, int h)
static int pix_norm1(uint8_t * pix, int line_size, int w)
{
int s, i, j;
- uint32_t *sq = ff_square_tab + 256;
+ const uint32_t *sq = ff_square_tab + 256;
s = 0;
for (i = 0; i < w; i++) {