summaryrefslogtreecommitdiff
path: root/libavcodec/me_cmp.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-02 00:20:04 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-21 19:13:06 +0100
commitb3473841731eebf5c32077f931334820316f16c6 (patch)
tree387fe2562519ea7e4517848d531d843ae6657e98 /libavcodec/me_cmp.h
parent1f9ef2f3cf0812c9ad3e3055946673375c982cac (diff)
avcodec/me_cmp: Remove ff_check_alignment()
The usage of a static variable presents a potential for data races and means that this function can't be used in init functions of codecs with FF_CODEC_CAP_INIT_THREADSAFE (unless of course one presumes that everything is alright in which case the error is not triggered; but then the whole function is pointless...). This makes the Snow decoder init-threadsafe as it already claims. Notice that this function has been removed in 2014 by Libav in commit 9103185bd116930f90b847090e66a64fa9971ce2, because only some codepaths are checked this way and because it only affects legacy compilers. The latter is of course even more true today. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/me_cmp.h')
-rw-r--r--libavcodec/me_cmp.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/me_cmp.h b/libavcodec/me_cmp.h
index 0a589e3c3d..e9b5161c9a 100644
--- a/libavcodec/me_cmp.h
+++ b/libavcodec/me_cmp.h
@@ -79,8 +79,6 @@ typedef struct MECmpContext {
me_cmp_func median_sad[6];
} MECmpContext;
-int ff_check_alignment(void);
-
void ff_me_cmp_init(MECmpContext *c, AVCodecContext *avctx);
void ff_me_cmp_init_alpha(MECmpContext *c, AVCodecContext *avctx);
void ff_me_cmp_init_arm(MECmpContext *c, AVCodecContext *avctx);