[3.14] community/libavif: backport fixes from edge
this is a cherry-pick of last 4 commits to the aport
Moreover this should help fix https://bugs.php.net/bug.php?id=81217
this is a cherry-pick of last 4 commits to the aport
Moreover this should help fix https://bugs.php.net/bug.php?id=81217