summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-31 13:17:18 +0100
committerwm4 <wm4@nowhere>2019-10-31 13:17:18 +0100
commitc10ba5eb8e62d04ed80cad512cf4863dadee07f1 (patch)
tree8cc891e80e09617b577ae6ec92a00ad2e721d202 /misc
parent7510ed6f684041db643c051cb17b13abf663b3b2 (diff)
downloadmpv-c10ba5eb8e62d04ed80cad512cf4863dadee07f1.tar.bz2
mpv-c10ba5eb8e62d04ed80cad512cf4863dadee07f1.tar.xz
Use mp_log2() instead of av_log2()
Diffstat (limited to 'misc')
-rw-r--r--misc/bstr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/misc/bstr.c b/misc/bstr.c
index 4117514457..772ca9c66d 100644
--- a/misc/bstr.c
+++ b/misc/bstr.c
@@ -22,8 +22,6 @@
#include <stdint.h>
#include <stdlib.h>
-#include <libavutil/common.h>
-
#include "mpv_talloc.h"
#include "common/common.h"
@@ -272,7 +270,7 @@ int bstr_parse_utf8_code_length(unsigned char b)
{
if (b < 128)
return 1;
- int bytes = 7 - av_log2(b ^ 255);
+ int bytes = 7 - mp_log2(b ^ 255);
return (bytes >= 2 && bytes <= 4) ? bytes : -1;
}