Skip to content

Commit

Permalink
re-enabled patch
Browse files Browse the repository at this point in the history
  • Loading branch information
devedse committed Mar 23, 2024
1 parent 7462b66 commit bcc87e3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
@@ -0,0 +1,23 @@
From cc9db1c519dc00966ba8d8cdb4328698dfff9f80 Mon Sep 17 00:00:00 2001
From: BtbN <btbn@btbn.de>
Date: Thu, 15 Apr 2021 21:38:32 +0200
Subject: [PATCH] Fall back to built-in vmaf model on load failure

---
aom_dsp/vmaf.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/aom_dsp/vmaf.c b/aom_dsp/vmaf.c
index 219e27830..6625f05c1 100644
--- a/aom_dsp/vmaf.c
+++ b/aom_dsp/vmaf.c
@@ -37,6 +37,7 @@ void aom_init_vmaf_model(VmafModel **vmaf_model, const char *model_path) {
model_cfg.name = "vmaf";

if (vmaf_model_load_from_path(vmaf_model, &model_cfg, model_path)) {
+ if (vmaf_model_load(vmaf_model, &model_cfg, "vmaf_v0.6.1"))
vmaf_fatal_error("Failed to load VMAF model.");
}
}
--
2.25.1
9 changes: 7 additions & 2 deletions scripts.d/50-aom.sh
Expand Up @@ -10,10 +10,15 @@ ffbuild_enabled() {
}

ffbuild_dockerstage() {
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=${SELFCACHE},dst=/cache.tar.xz run_stage /stage.sh"
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=${SELFCACHE},dst=/cache.tar.xz --mount=src=patches/aom,dst=/patches run_stage /stage.sh"
}

ffbuild_dockerbuild() {
for patch in /patches/*.patch; do
echo "Applying $patch"
git am < "$patch"
done

mkdir cmbuild && cd cmbuild

# Workaround broken build system
Expand All @@ -32,4 +37,4 @@ ffbuild_configure() {

ffbuild_unconfigure() {
echo --disable-libaom
}
}

0 comments on commit bcc87e3

Please sign in to comment.