diff options
author | Muhammad Faiz <mfcc64@gmail.com> | 2018-02-04 05:44:23 +0700 |
---|---|---|
committer | Muhammad Faiz <mfcc64@gmail.com> | 2018-02-05 22:42:59 +0700 |
commit | caa4bd7a9fe9186a56fdcb8194263b066978cbbe (patch) | |
tree | acd3e433556150ab4f80861d2bbefbf04213dbf9 /libavcodec/mpegvideoencdsp.c | |
parent | 118e1b0b3370dd1c0da442901b486689efd1654b (diff) | |
download | ffmpeg-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/mpegvideoencdsp.c')
-rw-r--r-- | libavcodec/mpegvideoencdsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideoencdsp.c b/libavcodec/mpegvideoencdsp.c index 0af3d8bef8..a34ab3553e 100644 --- a/libavcodec/mpegvideoencdsp.c +++ b/libavcodec/mpegvideoencdsp.c @@ -81,7 +81,7 @@ static int pix_sum_c(uint8_t *pix, int line_size) static int pix_norm1_c(uint8_t *pix, int line_size) { int s = 0, i, j; - uint32_t *sq = ff_square_tab + 256; + const uint32_t *sq = ff_square_tab + 256; for (i = 0; i < 16; i++) { for (j = 0; j < 16; j += 8) { |