Repository navigation
deps.ffmpeg: Update FFmpeg to 8.1.3 - #2
Conversation
|
Like #3, this branch predates #5 (the libvpx/NASM 3.02 Windows fix), so its Windows FFmpeg jobs still build the old libvpx; please rebase onto master or re-run after merging master. This is the Windows/macOS half of obs-rust/obs-studio#1091 (FFmpeg 8.1.3 public CVE fixes); the AppImage half is pinned in obs-rust/obs-studio#1880. If the macOS arm64 FFmpeg job still fails after the rebase, I'll look at it. |
Update FFmpeg from 8.1.2 to 8.1.3 (n8.1.3, commit 1041abdc962f). The 8.1.3 point release fixes these public CVEs, all of which affect 8.1.2: * CVE-2026-64830: VobSub demuxer https://nvd.nist.gov/vuln/detail/CVE-2026-64830 * CVE-2026-64832: NVDEC https://nvd.nist.gov/vuln/detail/CVE-2026-64832 * CVE-2026-64835: ADX decoder https://nvd.nist.gov/vuln/detail/CVE-2026-64835 * CVE-2026-66039: MACE6 decoder (CAF) https://nvd.nist.gov/vuln/detail/CVE-2026-66039 * CVE-2026-65703: TDSC decoder https://nvd.nist.gov/vuln/detail/CVE-2026-65703 * CVE-2026-70632: CFHD decoder https://nvd.nist.gov/vuln/detail/CVE-2026-70632 * CVE-2026-70628: DVB subtitle parser https://nvd.nist.gov/vuln/detail/CVE-2026-70628 * CVE-2026-58049: RASC decoder https://nvd.nist.gov/vuln/detail/CVE-2026-58049 * CVE-2026-75146: DASH demuxer (not built here: needs libxml2) https://nvd.nist.gov/vuln/detail/CVE-2026-75146 Patch changes: * 0001-flvdec-handle-unknown: Unchanged. libavformat/flvdec.c is the same in n8.1.2 and n8.1.3, the patch applies without fuzz, and it is still needed: upstream still turns unknown FLV script tags into a data stream instead of skipping them. * 0002-libaomenc-presets: Rebased (same change, new line numbers and context). The old hunk only applied with fuzz 1 because the "#define OFFSET" context line moved; that was already the case on n8.1.2, where libaomenc.c is also unchanged. Still needed: upstream still caps cpu-used at 8, and OBS offers AOM presets 9 and 10. Configure options are unchanged. Refs obs-rust/obs-studio#1091 Co-Authored-By: Claude Opus 5.5 <[email protected]>
551ec2d to
79f0a10
Compare
|
After the rebase all FFmpeg jobs pass, Windows x64/arm64 and macOS included (21/21; Universal is the expected skip). Ready for review. |
zackees
left a comment
There was a problem hiding this comment.
Coordinator review: LGTM. FFmpeg 8.1.2 -> 8.1.3: version/commit bumped in both .ps1 and .zsh, the libaomenc preset patch rebased to the new hunk offset (same change) with both HashSums updated. All FFmpeg jobs green after the rebase. Verdict: approve.
Description
Update FFmpeg from 8.1.2 to 8.1.3 in deps.ffmpeg (macOS/Linux
99-ffmpeg.zsh, Windows99-ffmpeg.ps1).0001-flvdec-handle-unknown.patch/-Windows.patch: unchanged.libavformat/flvdec.cis identical in n8.1.2 and n8.1.3, and the patch applies with no fuzz. It is still needed: n8.1.3 still turns an unknown FLV script tag into a data stream instead of skipping it.0002-libaomenc-presets.patch/-Windows.patch: rebased. The change is the same (thecpu-usedmaximum goes from 8 to 10); only the line numbers and one context line differ. The old hunk applied only with fuzz 1, because the#define OFFSETcontext line had moved. That was already the case on n8.1.2, sincelibavcodec/libaomenc.cis also identical in n8.1.2 and n8.1.3. It is still needed: upstream still capscpu-usedat 8, and the OBS AOM encoder offers presets 9 and 10. The Windows file keeps its CRLF line endings. Both patch hashes are updated in the scripts.Motivation and Context
FFmpeg 8.1.3 fixes these public CVEs, all of which affect 8.1.2 (tracked in obs-rust/obs-studio#1091):
These are memory-corruption bugs in decoders and demuxers. The Media Source and the image loader open files with full format probing, so a crafted file can reach any of them. The DASH demuxer needs libxml2, which obs-deps does not enable, so CVE-2026-75146 does not affect these builds. The fixes are the cherry-picks in n8.1.2..n8.1.3 (268 commits), for example 4fe710047d (VobSub), 9cbcf979a5 (NVDEC), 852b0552f0 (ADX), 228fd8f0ca (MACE), 2aee0b0ba6 (TDSC), 9736daf9a9 (CFHD), 46ef25c9c2 (DVB subtitles) and cf148db1a8 (RASC).
The Linux AppImage gets the same update in obs-rust/obs-studio-libs#5.
How Has This Been Tested?
Source. n8.1.3 resolves to 1041abdc962f4cc4f394aa8de9dc5236c0c3b9e7 on both github.com/FFmpeg/FFmpeg and git.ffmpeg.org. The annotated tag has a good signature from the same release key (ed25519
DD1EC9E8DE085C629B3E1846B18E8928B3948D64) that signed n8.1.2. n8.1.2 is an ancestor of n8.1.3.Patches. Each patch was applied to a fresh export of n8.1.3 with GNU patch, using the same steps as
apply_patchandSafe-Patch: a reverse dry run, then-g 0 -f -p1. Every patch also applies with--fuzz=0, and after applying, the reverse dry run detects it, so a second run skips it. The macOS and Windows sets produce byte-identical trees. The Windows files were also applied with--binaryto CRLF copies of the target files, the waypatch.exe --binarysees them. The result is the same as the old 0002 gave with fuzz, apart from the line endings. TheHashSum/hash values match the committed files.Build (Linux x86_64, clang 22). obs-deps does not build Linux packages, and the host has no zsh, so the
linux-x86_64path of99-ffmpeg.zshwas reproduced in bash: the same configure arguments and Release flags (-w -pipe -fPIC -O3 -g -DNDEBUG), clang as the compiler, and a shared build.PKG_CONFIG_LIBDIRalso listed the system pkg-config directories, and--pkg-config-flags=--staticwas left out. The CI static type uses it, but the host has no static codec libraries.Results, n8.1.2 compared with n8.1.3:
CONFIG_*/HAVE_*features enabled inconfig.mak(2357 of them).make fate, no external samples): n8.1.3 passes 2611/2611, and n8.1.2 passes 2607/2607. The 4 extra tests are new upstream ones (ffmpeg-negative-t,ffmpeg-negative-input-t,filter-scale-fast-bilinear-wide-edge,rename).The patches still work on n8.1.3:
ffmpeg -h encoder=libaom-av1listscpu-usedas "from 0 to 10". Realtime encodes with-cpu-used 9and-cpu-used 10succeed, and-cpu-used 11is rejected as out of range.onObsTestscript-data tag added after the video tags probes as audio and video only with this build. Stock FFmpeg 9.0.1, without the patch, adds a third data stream for it. Remuxing the file with-map 0 -c copyworks.Not tested here. No Windows or macOS build was run: the Windows test machine was not available, and there is no macOS machine. The MSVC (Windows) and VideoToolbox (macOS) parts of configure were not exercised. They are covered by the follow-ups below.
Follow-ups
CMakePresets.jsonto that release.This change is independent of the libsrt update in #1. The two touch different files and can merge in either order.
Types of changes
AI note: Claude Code (Claude Opus 5.5) wrote the patch changes, the checks, the commit message and this text under the submitter's direction, and ran the builds and tests above on the submitter's machines.
🤖 Generated with Claude Code