summaryrefslogtreecommitdiff
path: root/libavutil/cpu.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-14 14:25:05 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-19 14:34:19 +0200
commit7368e5537db61683b535257adbc0c3b15f0f84f2 (patch)
treed43c814bce482b66566d2083e4e5dc85c38545ab /libavutil/cpu.c
parentf3c197b129482954e863aa6cc0fe9fd0713a9321 (diff)
avutil/cpu: Schedule deprecated functions for removal
av_set_cpu_flags_mask() has been deprecated in the commit which merged it: 6df42f98746be06c883ce683563e07c9a2af983f; av_parse_cpu_flags() has been deprecated in 4b529edff8934c258af95e5acc51f84deea66262. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/cpu.c')
-rw-r--r--libavutil/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/cpu.c b/libavutil/cpu.c
index 9d249737df..1215394620 100644
--- a/libavutil/cpu.c
+++ b/libavutil/cpu.c
@@ -102,6 +102,7 @@ int av_get_cpu_flags(void)
return flags;
}
+#if FF_API_CPU_FLAGS
void av_set_cpu_flags_mask(int mask)
{
atomic_store_explicit(&cpu_flags, get_cpu_flags() & mask,
@@ -192,7 +193,7 @@ int av_parse_cpu_flags(const char *s)
return flags & INT_MAX;
}
-
+#endif
int av_parse_cpu_caps(unsigned *flags, const char *s)
{
static const AVOption cpuflags_opts[] = {