summaryrefslogtreecommitdiff
path: root/libavcodec/utils.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/utils.c
parent118e1b0b3370dd1c0da442901b486689efd1654b (diff)
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/utils.c')
-rw-r--r--libavcodec/utils.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 4c718432ad..aefe631590 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -104,18 +104,6 @@ AVCodec *av_codec_next(const AVCodec *c)
return first_avcodec;
}
-static av_cold void avcodec_init(void)
-{
- static int initialized = 0;
-
- if (initialized != 0)
- return;
- initialized = 1;
-
- if (CONFIG_ME_CMP)
- ff_me_cmp_init_static();
-}
-
int av_codec_is_encoder(const AVCodec *codec)
{
return codec && (codec->encode_sub || codec->encode2 ||codec->send_frame);
@@ -131,7 +119,6 @@ static AVMutex codec_register_mutex = AV_MUTEX_INITIALIZER;
av_cold void avcodec_register(AVCodec *codec)
{
AVCodec **p;
- avcodec_init();
ff_mutex_lock(&codec_register_mutex);
p = last_avcodec;