Fix libavif build on VS2019 syntax error (#649)

* Test old source of libavif

* Test old source of libavif

* Fix libavif 1.2.0 bug
This commit is contained in:
Jerry Ma
2025-03-14 23:37:01 +08:00
committed by GitHub
parent b4f3657323
commit 4558204962
2 changed files with 11 additions and 8 deletions

View File

@@ -12,6 +12,8 @@ class libavif extends WindowsLibraryBase
protected function build(): void
{
// workaround for libavif 1.2.0 bug
FileSystem::replaceFileStr($this->source_dir . '\src\read.c', 'avifFileType ftyp = {};', 'avifFileType ftyp = { 0 };');
// reset cmake
FileSystem::resetDir($this->source_dir . '\build');