Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/generate-sbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,45 @@ def generate(version: str) -> dict:
"scope": "optional",
"description": "AVIF codec (optional, used by PIL._avif).",
"licenses": [{"license": {"id": "BSD-2-Clause"}}],
"pedigree": {
"ancestors": [
{
"bom-ref": "pkg:github/aomediacodec/libavif@1.4.2#upstream",
"type": "library",
"name": "libavif",
"version": "1.4.2",
"purl": "pkg:github/aomediacodec/libavif@1.4.2",
"externalReferences": [
{
"type": "distribution",
"url": "https://github.com/AOMediaCodec/libavif/releases/tag/v1.4.2",
}
],
}
],
"patches": [
{
"type": "unofficial",
"diff": {
"text": {
# partially apply https://github.com/AOMediaCodec/libavif/pull/3460/changes/c81f7ecfa0f13786b15336961686300781144beb
"content": base64.b64encode(
(
Path(__file__).parent.parent
/ "patches"
/ "libavif.patch"
).read_bytes()
).decode(),
"encoding": "base64",
}
},
},
],
"notes": (
"Vendored from upstream libavif 1.4.2, "
"patched to use dav1d 1.5.5 on Windows."
),
},
"externalReferences": [
{"type": "website", "url": "https://github.com/AOMediaCodec/libavif"},
{
Expand Down
10 changes: 10 additions & 0 deletions patches/libavif.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/cmake/Modules/LocalDav1d.cmake b/cmake/Modules/LocalDav1d.cmake
index b03bab8..8245750 100644
--- a/cmake/Modules/LocalDav1d.cmake
+++ b/cmake/Modules/LocalDav1d.cmake
@@ -1,4 +1,4 @@
-set(AVIF_DAV1D_TAG "1.5.3")
+set(AVIF_DAV1D_TAG "1.5.5")

function(avif_build_local_dav1d)
set(download_step_args)
Loading