Unverified Commit a6225218 authored by Adrian Schollmeyer's avatar Adrian Schollmeyer
Browse files

media-libs/dav1d: Remove package as discussed in #99


Signed-off-by: Adrian Schollmeyer's avatarAdrian 'nex' Schollmeyer <adrian.schollmeyer@fem.tu-ilmenau.de>
parent 9d8c9a65
Pipeline #2801 passed with stages
in 24 seconds
DIST dav1d-0.9.2.tar.bz2 833722 BLAKE2B b05edd1ca627906e57923be08f1ecd73469f9a8e2ed585edf81f1fe1ffc173f1e4ba52eb766b82d9ea1349a6c1cf2a5a48cc9a5bcf2debeb9d640d9842e266f4 SHA512 adfb822734a3fc8b73e9cf5f757bfd78fb144b00d95f1e942254c5caf1d801b05438d39571486ef37a94d2226166937fc56160a862e8d6d45c4f6d790531dc3f
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
SCM=""
if [[ "${PV}" == "9999" ]]; then
SCM="git-r3"
EGIT_REPO_URI="https://code.videolan.org/videolan/dav1d"
else
# Additional patch is for fixing a bug that is not yet merged upstream, bug
# required for our infrastructure soon
SRC_URI="https://code.videolan.org/videolan/dav1d/-/archive/${PV}/${P}.tar.bz2"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
fi
inherit ${SCM} meson-multilib
DESCRIPTION="dav1d is an AV1 Decoder :)"
HOMEPAGE="https://code.videolan.org/videolan/dav1d"
LICENSE="BSD-2"
SLOT="0/5"
IUSE="+8bit +10bit +asm test xxhash"
RESTRICT="!test? ( test )"
ASM_DEPEND=">=dev-lang/nasm-2.15.05"
BDEPEND="asm? (
abi_x86_32? ( ${ASM_DEPEND} )
abi_x86_64? ( ${ASM_DEPEND} )
)
xxhash? ( dev-libs/xxhash )
"
DOCS=( README.md doc/PATENTS THANKS.md )
PATCHES=(
"${FILESDIR}"/build-avoid-meson-s-symbols_have_underscore_prefix.patch
"${FILESDIR}"/${P}-fix-keyframe-bug-383.patch
)
multilib_src_configure() {
local -a bits=()
use 8bit && bits+=( 8 )
use 10bit && bits+=( 16 )
local enable_asm
if [[ ${MULTILIB_ABI_FLAG} == abi_x86_x32 ]]; then
enable_asm=false
else
enable_asm=$(usex asm true false)
fi
local emesonargs=(
-D bitdepths=$(IFS=,; echo "${bits[*]}")
-D enable_asm=${enable_asm}
-D enable_tests=$(usex test true false)
-D xxhash_muxer=$(usex xxhash enabled disabled)
)
meson_src_configure
}
multilib_src_test() {
if multilib_is_native_abi ; then
meson_src_test
fi
}
https://code.videolan.org/videolan/dav1d/-/issues/370
https://code.videolan.org/videolan/dav1d/-/commit/c6a08b3aa1ee99dade53e5e32033bc1d14455a22
From c6a08b3aa1ee99dade53e5e32033bc1d14455a22 Mon Sep 17 00:00:00 2001
From: Janne Grunau <janne-vlc@jannau.net>
Date: Tue, 21 Sep 2021 09:30:14 +0200
Subject: [PATCH 1/5] build: avoid meson's symbols_have_underscore_prefix
Meson's dynamic check is unreliable when additional compiler flags are
passed via CFLAGS. For example '-fprofile-instr-generate' in oss-fuzz'
coverage build. Fixes #370.
---
meson.build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 1bf69ab..1a7c409 100644
--- a/meson.build
+++ b/meson.build
@@ -382,7 +382,11 @@ endif
cdata.set10('ARCH_PPC64LE', host_machine.cpu() == 'ppc64le')
-if cc.symbols_have_underscore_prefix()
+# meson's cc.symbols_have_underscore_prefix() is unfortunately unrelieably
+# when additional flags like '-fprofile-instr-generate' are passed via CFLAGS
+# see following meson issue https://github.com/mesonbuild/meson/issues/5482
+if (host_machine.system() == 'darwin' or
+ (host_machine.system() == 'windows' and host_machine.cpu_family() == 'x86'))
cdata.set10('PREFIX', true)
cdata_asm.set10('PREFIX', true)
endif
--
2.32.0
diff --git a/src/obu.c b/src/obu.c
index 89fa593..ebce928 100644
--- a/src/obu.c
+++ b/src/obu.c
@@ -1291,7 +1291,7 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in, const int globa
case DAV1D_OBU_FRAME:
case DAV1D_OBU_FRAME_HDR:
if (global) break;
- if (!c->seq_hdr) goto error;
+ if (!c->seq_hdr) return len + init_byte_pos;
if (!c->frame_hdr_ref) {
c->frame_hdr_ref = dav1d_ref_create_using_pool(c->frame_hdr_pool,
sizeof(Dav1dFrameHeader));
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>adrian.schollmeyer@fem.tu-ilmenau.de</email>
</maintainer>
<use>
<flag name="8bit">Add support for decoding 8-bit AV1.</flag>
<flag name="10bit">Add support for building 10-bit and 12-bit AV1.</flag>
<flag name="asm">Enable custom assembly for faster decoding.</flag>
<flag name="xxhash">Enable <pkg>dev-libs/xxhash</pkg> support for hashing muxer</flag>
</use>
<upstream>
<bugs-to>https://code.videolan.org/videolan/dav1d/issues</bugs-to>
</upstream>
</pkgmetadata>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment