diff options
author | wm4 <wm4@nowhere> | 2019-10-31 13:17:18 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-31 13:17:18 +0100 |
commit | c10ba5eb8e62d04ed80cad512cf4863dadee07f1 (patch) | |
tree | 8cc891e80e09617b577ae6ec92a00ad2e721d202 /video/zimg.c | |
parent | 7510ed6f684041db643c051cb17b13abf663b3b2 (diff) | |
download | mpv-c10ba5eb8e62d04ed80cad512cf4863dadee07f1.tar.bz2 mpv-c10ba5eb8e62d04ed80cad512cf4863dadee07f1.tar.xz |
Use mp_log2() instead of av_log2()
Diffstat (limited to 'video/zimg.c')
-rw-r--r-- | video/zimg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/zimg.c b/video/zimg.c index 6e3a72a403..9b4aa0cbaa 100644 --- a/video/zimg.c +++ b/video/zimg.c @@ -15,7 +15,7 @@ * License along with mpv. If not, see <http://www.gnu.org/licenses/>. */ -#include <libavutil/common.h> +#include <math.h> #include "common/common.h" #include "common/msg.h" @@ -452,8 +452,8 @@ static bool setup_format(zimg_image_format *zfmt, struct mp_zimg_repack *r, zfmt->width = fmt.w; zfmt->height = fmt.h; - zfmt->subsample_w = av_log2(desc.chroma_w); - zfmt->subsample_h = av_log2(desc.chroma_h); + zfmt->subsample_w = mp_log2(desc.chroma_w); + zfmt->subsample_h = mp_log2(desc.chroma_h); zfmt->color_family = ZIMG_COLOR_YUV; if (desc.num_planes == 1) { |