update to libavif 0.8.1, from Brad.

This commit is contained in:
sthen 2020-10-03 13:18:39 +00:00
parent d112318649
commit e6a04c76bc
3 changed files with 5 additions and 23 deletions

View File

@ -1,14 +1,13 @@
# $OpenBSD: Makefile,v 1.9 2020/05/17 09:29:01 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.10 2020/10/03 13:18:39 sthen Exp $
COMMENT= library for encoding and decoding .avif files
GH_ACCOUNT= AOMediaCodec
GH_PROJECT= libavif
GH_TAGNAME= v0.7.3
REVISION= 0
GH_TAGNAME= v0.8.1
CATEGORIES= graphics
SHARED_LIBS= avif 1.1
SHARED_LIBS= avif 2.0
HOMEPAGE= https://github.com/AOMediaCodec/libavif

View File

@ -1,2 +1,2 @@
SHA256 (libavif-0.7.3.tar.gz) = pM4DZJxY7J89xqsrfPfVhHSxSazx5MVjvkCButYO0t0=
SIZE (libavif-0.7.3.tar.gz) = 2893675
SHA256 (libavif-0.8.1.tar.gz) = J9ObaRUf0JDybhB3nseYdq9Eh20YDt2ne+r6jn56yiY=
SIZE (libavif-0.8.1.tar.gz) = 2915941

View File

@ -1,17 +0,0 @@
$OpenBSD: patch-src_codec_aom_c,v 1.3 2020/05/17 09:29:09 ajacoutot Exp $
Re-enable cpu-used=7+ in codec_aom when libaom major version > 1.
Index: src/codec_aom.c
--- src/codec_aom.c.orig
+++ src/codec_aom.c
@@ -254,7 +254,8 @@ static avifBool aomCodecEncodeImage(avifCodec * codec,
}
}
- if (image->depth > 8) {
+ int aomMajorVersion = aom_codec_version_major();
+ if ((aomMajorVersion < 2) && (image->depth > 8)) {
// Due to a known issue with libavif v1.0.0-errata1-avif, 10bpc and
// 12bpc image encodes will call the wrong variant of
// aom_subtract_block when cpu-used is 7 or 8, and crash. Until we get