From nobody Fri Mar 18 14:48:57 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7C7901A248AB; Fri, 18 Mar 2022 14:48:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KKn2d33cDz3mSG; Fri, 18 Mar 2022 14:48:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647614937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J7y/cWT9gf88qCxxRIyFrI4/GW+h6pjqLEhXwV6/2Q4=; b=ozI8DgJOP9uaj+3geqsj9phTOMf78O5A4sZPKKY1QH43LspGXyYgu2nGZkzJLrIG5eHV6O XRtyGtXVVokFDIOl/KjK+Ox3aa498kuzi4K9WCzNj3azFccC1usZcd11tDxoqvqNYtfi3f yWq8TQtnK25/7dgZcBszzl6urc2qUbuGRNjlY5zekMWOb2WS/3cQcSY2BgKmJoI8Yp3dQo YnD51sg9USq8VmZF8g+c/R1na4gHGpCBThfCg4MurM7SIeVpOQw5EP4PYVR8lF9DXS6Lt9 KeplrWfWoL9281gVQQ5zPPeUCI7CuvxlyOSelSjonClf0kxduBIQMOok6GpjBw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4899920BA9; Fri, 18 Mar 2022 14:48:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22IEmveV011676; Fri, 18 Mar 2022 14:48:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22IEmvAP011675; Fri, 18 Mar 2022 14:48:57 GMT (envelope-from git) Date: Fri, 18 Mar 2022 14:48:57 GMT Message-Id: <202203181448.22IEmvAP011675@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Jan Beich Subject: git: a53a92662f2c - 2022Q1 - multimedia/dav1d: update to 1.0.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/2022Q1 X-Git-Reftype: branch X-Git-Commit: a53a92662f2c5ce77fcb618bce137cab62f85f1d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647614937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J7y/cWT9gf88qCxxRIyFrI4/GW+h6pjqLEhXwV6/2Q4=; b=d/48qwKcStjUY0eh8WQURCOoPv1fFvqi+COa8y/Vc0bnXC/8CoBIshZFTp/6gTXzLFZyF9 fpVMJ6bQ+uLpudSoz4amDKsd5WVt7QlkQ/vfWA0x1CX5pc6GTbRgnKmw6efH98dAmUlQb5 7rF+DRJSDXAzibeMEkbR9m2RRll5ydOGielopeLnxnMsdGNfAxAF/TOIuEGf2qwadS4QCQ P7R52Zmqzdx+ZKXZJFf2s4GQGE17oBb+05ay2Lu7XKU8lGcB4JwFb7b79KF+Hs2U3eI2D6 qLXYSKdzOWX4U0n9d9xnb7KhT3pJS2fCIlDK1zQaaCHzmi1zk1GgFrl1O/5t7Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647614937; a=rsa-sha256; cv=none; b=M7kHoGYa4wFwbhxkTB3Y3yZQiJFKh7xeY2f01UX3I/UFpTv53YNJfPX13cwV3bLubaJrLx EIvUTewmP25MiDQr/0M/aKWFBugtl4PnY+7g5fpaNdR1r/+bXpMUifw3mbFW3zL7l3I5P8 PuA8tATue6BvolGELBfgD5r6O5gKnB0xpuPcMtEx1bONHtCOFsd9ugjmCAuaH7Ebi49VFK bq5fVC+9DMqCzI9RNC5prJ+DrHR4a+pfWwYpCV7FSNhETmZqGfCOqD6On1s/VuE/rfStdN ek30hl2e+TsjSCVV0HuOTxYnYNakPRp6N1KhYqTiA09Oth+jczmeR9+ZtFQVxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch 2022Q1 has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=a53a92662f2c5ce77fcb618bce137cab62f85f1d commit a53a92662f2c5ce77fcb618bce137cab62f85f1d Author: Jan Beich AuthorDate: 2022-02-15 16:44:07 +0000 Commit: Jan Beich CommitDate: 2022-03-18 14:48:01 +0000 multimedia/dav1d: update to 1.0.0 Changes: https://code.videolan.org/videolan/dav1d/-/releases/1.0.0 Reported by: Repology (cherry picked from commit 3468f1957cf25742c60e1066f1174866c42efe96) --- Mk/bsd.gecko.mk | 3 -- cad/opencascade/Makefile | 2 +- graphics/libavif/Makefile | 1 + graphics/libheif/Makefile | 2 +- mail/thunderbird/Makefile | 3 +- mail/thunderbird/files/patch-bug1734058 | 45 +++++++++++++++++++++++++++++ multimedia/dav1d/Makefile | 6 ++-- multimedia/dav1d/distinfo | 10 +++---- multimedia/dav1d/pkg-plist | 4 +-- multimedia/emby-server/Makefile | 1 + multimedia/ffmpeg/Makefile | 2 +- multimedia/gstreamer1-plugins-rust/Makefile | 2 +- multimedia/kodi/Makefile | 2 +- multimedia/libxine/Makefile | 2 +- multimedia/mythtv/Makefile | 2 +- multimedia/vlc/Makefile | 2 +- www/firefox-esr/Makefile | 2 ++ www/firefox-esr/files/patch-bug1734058 | 45 +++++++++++++++++++++++++++++ www/firefox/Makefile | 2 ++ www/firefox/files/patch-bug1559213 | 22 ++++++++++++++ 20 files changed, 138 insertions(+), 22 deletions(-) diff --git a/Mk/bsd.gecko.mk b/Mk/bsd.gecko.mk index fdc1effe8672..cd6707399bb4 100644 --- a/Mk/bsd.gecko.mk +++ b/Mk/bsd.gecko.mk @@ -127,13 +127,10 @@ RUSTFLAGS+= ${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/} # Standard depends _ALL_DEPENDS= av1 event ffi graphite harfbuzz icu jpeg nspr nss png pixman sqlite vpx webp -# firefox 95 uses a dav1d snapshot > 0.9.2 -.if ${MOZILLA_VER:R:R} < 95 .if exists(${FILESDIR}/patch-bug1559213) av1_LIB_DEPENDS= libaom.so:multimedia/aom libdav1d.so:multimedia/dav1d av1_MOZ_OPTIONS= --with-system-av1 .endif -.endif event_LIB_DEPENDS= libevent.so:devel/libevent event_MOZ_OPTIONS= --with-system-libevent diff --git a/cad/opencascade/Makefile b/cad/opencascade/Makefile index 7c34082f9c5b..7a7cef679aab 100644 --- a/cad/opencascade/Makefile +++ b/cad/opencascade/Makefile @@ -2,7 +2,7 @@ PORTNAME= opencascade PORTVERSION= 7.6.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= cad science MASTER_SITES= LOCAL/thierry diff --git a/graphics/libavif/Makefile b/graphics/libavif/Makefile index 30a6588d8e41..ad84a30c6fd2 100644 --- a/graphics/libavif/Makefile +++ b/graphics/libavif/Makefile @@ -1,6 +1,7 @@ PORTNAME= libavif DISTVERSIONPREFIX= v DISTVERSION= 0.9.3 +PORTREVISION= 1 CATEGORIES= graphics PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ diff --git a/graphics/libheif/Makefile b/graphics/libheif/Makefile index 3f761e8f08cc..06aa30faff61 100644 --- a/graphics/libheif/Makefile +++ b/graphics/libheif/Makefile @@ -1,7 +1,7 @@ PORTNAME= libheif DISTVERSIONPREFIX= v DISTVERSION= 1.10.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= graphics PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ diff --git a/mail/thunderbird/Makefile b/mail/thunderbird/Makefile index 0a4df0bb821e..fdd2d26f7d8a 100644 --- a/mail/thunderbird/Makefile +++ b/mail/thunderbird/Makefile @@ -2,7 +2,7 @@ PORTNAME= thunderbird DISTVERSION= 91.7.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail news net-im MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \ MOZILLA/${PORTNAME}/candidates/${DISTVERSION}-candidates/build2/source @@ -18,6 +18,7 @@ BUILD_DEPENDS= nspr>=4.32:devel/nspr \ harfbuzz>=2.8.1:print/harfbuzz \ graphite2>=1.3.14:graphics/graphite2 \ png>=1.6.37:graphics/png \ + dav1d>=1.0.0:multimedia/dav1d \ libvpx>=1.8.2:multimedia/libvpx \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ v4l_compat>0:multimedia/v4l_compat \ diff --git a/mail/thunderbird/files/patch-bug1734058 b/mail/thunderbird/files/patch-bug1734058 new file mode 100644 index 000000000000..c3c16f135cba --- /dev/null +++ b/mail/thunderbird/files/patch-bug1734058 @@ -0,0 +1,45 @@ +commit 874adf9b96df +Author: Jon Bauman +Date: Tue Oct 26 17:11:36 2021 +0000 + + Bug 1734058 - Update dav1d to new version f52aee04fbd711cddab23d0aa9b196e9c963e7b8 from 2021-10-04 21:58:36. r=mjf,haik + + This is a fairly significant update, so required a few changes to Gecko code, but I've commented on the interesting details, so they should be easy to find + + Differential Revision: https://phabricator.services.mozilla.com/D129465 +--- + dom/media/platforms/agnostic/DAV1DDecoder.cpp | 7 +------ + image/decoders/nsAVIFDecoder.cpp | 1 + + 2 files changed, 2 insertions(+), 6 deletions(-) + +diff --git dom/media/platforms/agnostic/DAV1DDecoder.cpp dom/media/platforms/agnostic/DAV1DDecoder.cpp +index 459531fe8cf0..3c596b1fefe1 100644 +--- dom/media/platforms/agnostic/DAV1DDecoder.cpp ++++ dom/media/platforms/agnostic/DAV1DDecoder.cpp +@@ -37,13 +37,8 @@ RefPtr DAV1DDecoder::Init() { + } else if (mInfo.mDisplay.width >= 1024) { + decoder_threads = 4; + } +- settings.n_frame_threads = ++ settings.n_threads = + static_cast(std::min(decoder_threads, GetNumberOfProcessors())); +- // There is not much improvement with more than 2 tile threads at least with +- // the content being currently served. The ideal number of tile thread would +- // much the tile count of the content. Maybe dav1d can help to do that in the +- // future. +- settings.n_tile_threads = 2; + + int res = dav1d_open(&mContext, &settings); + if (res < 0) { +diff --git image/decoders/nsAVIFDecoder.cpp image/decoders/nsAVIFDecoder.cpp +index 9d1b7496a129..3bb9e8f8d08a 100644 +--- image/decoders/nsAVIFDecoder.cpp ++++ image/decoders/nsAVIFDecoder.cpp +@@ -581,6 +581,7 @@ class Dav1dDecoder final : AVIFDecoderInterface { + Dav1dSettings settings; + dav1d_default_settings(&settings); + settings.all_layers = 0; ++ settings.max_frame_delay = 1; + // TODO: tune settings a la DAV1DDecoder for AV1 (Bug 1681816) + + return dav1d_open(&mContext, &settings); diff --git a/multimedia/dav1d/Makefile b/multimedia/dav1d/Makefile index 8b2f8d3aa6b8..e10da65b57a0 100644 --- a/multimedia/dav1d/Makefile +++ b/multimedia/dav1d/Makefile @@ -1,5 +1,5 @@ PORTNAME= dav1d -DISTVERSION= 0.9.2 +DISTVERSION= 1.0.0 CATEGORIES= multimedia MAINTAINER= jbeich@FreeBSD.org @@ -17,7 +17,7 @@ USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://code.videolan.org GL_ACCOUNT= videolan -GL_COMMIT= 7b433e077298d0f4faf8da6d6eb5774e29bffa54 +GL_COMMIT= 99172b11470776177939c3d2bc366fe8d904eab7 LDFLAGS_i386= -Wl,-z,notext OPTIONS_DEFINE= SDL TEST @@ -30,7 +30,7 @@ SDL_LIB_DEPENDS= libplacebo.so:graphics/libplacebo \ libvulkan.so:graphics/vulkan-loader SDL_MESON_TRUE= enable_examples -TEST_GL_TUPLE= videolan:dav1d-test-data:4fd8f87d7df509fda1af51e5e2f7c415692afaef:testdata/tests/dav1d-test-data +TEST_GL_TUPLE= videolan:dav1d-test-data:0214ee7342c646b238f98267adf8503c56d9df53:testdata/tests/dav1d-test-data TEST_MESON_TRUE=enable_tests testdata_tests .if make(makesum) # for optional distfiles diff --git a/multimedia/dav1d/distinfo b/multimedia/dav1d/distinfo index e4f97bd645a7..ee9d1c38a8c4 100644 --- a/multimedia/dav1d/distinfo +++ b/multimedia/dav1d/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1630680156 -SHA256 (videolan-dav1d-7b433e077298d0f4faf8da6d6eb5774e29bffa54_GL0.tar.gz) = 0dd8de308248282f5743b2ceee0a8d57cc6cf4afcbd15708059c3ac2f600914a -SIZE (videolan-dav1d-7b433e077298d0f4faf8da6d6eb5774e29bffa54_GL0.tar.gz) = 1186989 -SHA256 (videolan-dav1d-test-data-4fd8f87d7df509fda1af51e5e2f7c415692afaef_GL0.tar.gz) = cc9247a79b9bd0231418dcd31f4d9fe29ac51bfae5d3cea1a131bb3e89835bd0 -SIZE (videolan-dav1d-test-data-4fd8f87d7df509fda1af51e5e2f7c415692afaef_GL0.tar.gz) = 50361909 +TIMESTAMP = 1647610281 +SHA256 (videolan-dav1d-99172b11470776177939c3d2bc366fe8d904eab7_GL0.tar.gz) = 411211625f44301c03858c395061ac87af6b3a0f02bdd3d599b4c87b123ccb27 +SIZE (videolan-dav1d-99172b11470776177939c3d2bc366fe8d904eab7_GL0.tar.gz) = 1375242 +SHA256 (videolan-dav1d-test-data-0214ee7342c646b238f98267adf8503c56d9df53_GL0.tar.gz) = 1399a5a8ddfc8b22c320e30d731c82fce6d962fa28cd16236a742903c969ebe7 +SIZE (videolan-dav1d-test-data-0214ee7342c646b238f98267adf8503c56d9df53_GL0.tar.gz) = 50909709 diff --git a/multimedia/dav1d/pkg-plist b/multimedia/dav1d/pkg-plist index 6a48c23511f3..18128a512c72 100644 --- a/multimedia/dav1d/pkg-plist +++ b/multimedia/dav1d/pkg-plist @@ -7,6 +7,6 @@ include/dav1d/headers.h include/dav1d/picture.h include/dav1d/version.h lib/libdav1d.so -lib/libdav1d.so.5 -lib/libdav1d.so.5.1.1 +lib/libdav1d.so.6 +lib/libdav1d.so.6.6.0 libdata/pkgconfig/dav1d.pc diff --git a/multimedia/emby-server/Makefile b/multimedia/emby-server/Makefile index 358f6ea46a72..330969b909fb 100644 --- a/multimedia/emby-server/Makefile +++ b/multimedia/emby-server/Makefile @@ -1,5 +1,6 @@ PORTNAME= emby-server DISTVERSION= 4.6.7.0 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= https://github.com/MediaBrowser/Emby.Releases/releases/download/${PORTVERSION}/ \ https://mediabrowser.github.io/embytools/ diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile index 2391d0ec85a3..1563cbd91338 100644 --- a/multimedia/ffmpeg/Makefile +++ b/multimedia/ffmpeg/Makefile @@ -2,7 +2,7 @@ PORTNAME= ffmpeg PORTVERSION= 4.4.1 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= multimedia audio net MASTER_SITES= https://ffmpeg.org/releases/ diff --git a/multimedia/gstreamer1-plugins-rust/Makefile b/multimedia/gstreamer1-plugins-rust/Makefile index e047d18687f9..2d45b6bc34cc 100644 --- a/multimedia/gstreamer1-plugins-rust/Makefile +++ b/multimedia/gstreamer1-plugins-rust/Makefile @@ -1,6 +1,6 @@ PORTNAME= gstreamer1-plugins-rust DISTVERSION= 0.7.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= multimedia MAINTAINER= jbeich@FreeBSD.org diff --git a/multimedia/kodi/Makefile b/multimedia/kodi/Makefile index 5e1a82dd3ecc..f490dd759c6e 100644 --- a/multimedia/kodi/Makefile +++ b/multimedia/kodi/Makefile @@ -1,7 +1,7 @@ PORTNAME= kodi DISTVERSION= 19.3 DISTVERSIONSUFFIX= -${KODI_CODENAME} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= multimedia java MAINTAINER= yzrh@noema.org diff --git a/multimedia/libxine/Makefile b/multimedia/libxine/Makefile index 1e2e561232d3..82afdad954d7 100644 --- a/multimedia/libxine/Makefile +++ b/multimedia/libxine/Makefile @@ -2,7 +2,7 @@ PORTNAME= xine DISTVERSION= 1.2.11 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= multimedia MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-lib/${PORTVERSION} PKGNAMEPREFIX= lib diff --git a/multimedia/mythtv/Makefile b/multimedia/mythtv/Makefile index 508091e28e06..3cd15abf1e63 100644 --- a/multimedia/mythtv/Makefile +++ b/multimedia/mythtv/Makefile @@ -3,7 +3,7 @@ PORTNAME= mythtv DISTVERSIONPREFIX= v DISTVERSION= 31.0 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= multimedia diff --git a/multimedia/vlc/Makefile b/multimedia/vlc/Makefile index 59693e01c440..251009c51fce 100644 --- a/multimedia/vlc/Makefile +++ b/multimedia/vlc/Makefile @@ -2,7 +2,7 @@ PORTNAME= vlc DISTVERSION= 3.0.16 -PORTREVISION= 8 +PORTREVISION= 9 PORTEPOCH= 4 CATEGORIES= multimedia audio net www MASTER_SITES= http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION:S/a$//}/ \ diff --git a/www/firefox-esr/Makefile b/www/firefox-esr/Makefile index e784ec95b375..aa05825aaff7 100644 --- a/www/firefox-esr/Makefile +++ b/www/firefox-esr/Makefile @@ -2,6 +2,7 @@ PORTNAME= firefox DISTVERSION= 91.7.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= www MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \ @@ -19,6 +20,7 @@ BUILD_DEPENDS= nspr>=4.32:devel/nspr \ harfbuzz>=2.8.1:print/harfbuzz \ graphite2>=1.3.14:graphics/graphite2 \ png>=1.6.37:graphics/png \ + dav1d>=1.0.0:multimedia/dav1d \ libvpx>=1.8.2:multimedia/libvpx \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ v4l_compat>0:multimedia/v4l_compat \ diff --git a/www/firefox-esr/files/patch-bug1734058 b/www/firefox-esr/files/patch-bug1734058 new file mode 100644 index 000000000000..c3c16f135cba --- /dev/null +++ b/www/firefox-esr/files/patch-bug1734058 @@ -0,0 +1,45 @@ +commit 874adf9b96df +Author: Jon Bauman +Date: Tue Oct 26 17:11:36 2021 +0000 + + Bug 1734058 - Update dav1d to new version f52aee04fbd711cddab23d0aa9b196e9c963e7b8 from 2021-10-04 21:58:36. r=mjf,haik + + This is a fairly significant update, so required a few changes to Gecko code, but I've commented on the interesting details, so they should be easy to find + + Differential Revision: https://phabricator.services.mozilla.com/D129465 +--- + dom/media/platforms/agnostic/DAV1DDecoder.cpp | 7 +------ + image/decoders/nsAVIFDecoder.cpp | 1 + + 2 files changed, 2 insertions(+), 6 deletions(-) + +diff --git dom/media/platforms/agnostic/DAV1DDecoder.cpp dom/media/platforms/agnostic/DAV1DDecoder.cpp +index 459531fe8cf0..3c596b1fefe1 100644 +--- dom/media/platforms/agnostic/DAV1DDecoder.cpp ++++ dom/media/platforms/agnostic/DAV1DDecoder.cpp +@@ -37,13 +37,8 @@ RefPtr DAV1DDecoder::Init() { + } else if (mInfo.mDisplay.width >= 1024) { + decoder_threads = 4; + } +- settings.n_frame_threads = ++ settings.n_threads = + static_cast(std::min(decoder_threads, GetNumberOfProcessors())); +- // There is not much improvement with more than 2 tile threads at least with +- // the content being currently served. The ideal number of tile thread would +- // much the tile count of the content. Maybe dav1d can help to do that in the +- // future. +- settings.n_tile_threads = 2; + + int res = dav1d_open(&mContext, &settings); + if (res < 0) { +diff --git image/decoders/nsAVIFDecoder.cpp image/decoders/nsAVIFDecoder.cpp +index 9d1b7496a129..3bb9e8f8d08a 100644 +--- image/decoders/nsAVIFDecoder.cpp ++++ image/decoders/nsAVIFDecoder.cpp +@@ -581,6 +581,7 @@ class Dav1dDecoder final : AVIFDecoderInterface { + Dav1dSettings settings; + dav1d_default_settings(&settings); + settings.all_layers = 0; ++ settings.max_frame_delay = 1; + // TODO: tune settings a la DAV1DDecoder for AV1 (Bug 1681816) + + return dav1d_open(&mContext, &settings); diff --git a/www/firefox/Makefile b/www/firefox/Makefile index 7dbc700f2334..7ebe6b8d5ca2 100644 --- a/www/firefox/Makefile +++ b/www/firefox/Makefile @@ -2,6 +2,7 @@ PORTNAME= firefox DISTVERSION= 98.0.1 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= www MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \ @@ -18,6 +19,7 @@ BUILD_DEPENDS= nspr>=4.32:devel/nspr \ harfbuzz>=3.1.2:print/harfbuzz \ graphite2>=1.3.14:graphics/graphite2 \ png>=1.6.37:graphics/png \ + dav1d>=1.0.0:multimedia/dav1d \ libvpx>=1.8.2:multimedia/libvpx \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ v4l_compat>0:multimedia/v4l_compat \ diff --git a/www/firefox/files/patch-bug1559213 b/www/firefox/files/patch-bug1559213 index ceaba53522aa..09b4dcc58e83 100644 --- a/www/firefox/files/patch-bug1559213 +++ b/www/firefox/files/patch-bug1559213 @@ -61,6 +61,28 @@ index 8509aec..eb6f129 100644 if CONFIG["MOZ_OMX"]: EXPORTS += [ +diff --git media/ffvpx/libavcodec/moz.build media/ffvpx/libavcodec/moz.build +index 0069865..e806fc8 100644 +--- media/ffvpx/libavcodec/moz.build ++++ media/ffvpx/libavcodec/moz.build +@@ -112,9 +112,15 @@ if not CONFIG['MOZ_FFVPX_AUDIOONLY']: + 'vaapi_vp8.c', + 'vaapi_vp9.c', + ] ++ if CONFIG["MOZ_SYSTEM_AV1"]: ++ CFLAGS += CONFIG['MOZ_SYSTEM_LIBDAV1D_CFLAGS'] ++ OS_LIBS += CONFIG['MOZ_SYSTEM_LIBDAV1D_LIBS'] ++ else: ++ USE_LIBS += [ ++ 'dav1d', ++ 'media_libdav1d_asm', ++ ] + USE_LIBS += [ +- 'dav1d', +- 'media_libdav1d_asm', + 'mozva' + ] + diff --git toolkit/moz.configure toolkit/moz.configure index 0069865..e806fc8 100644 --- toolkit/moz.configure