Skip to content

File_Extractor: Support the 7z Delta filter - #553

Merged
kode54 merged 1 commit into
losnoco:mainfrom
pmaciel:fix/7z-delta-filter
Nov 11, 2026
Merged

kode54 merged 1 commit into
losnoco:mainfrom
pmaciel:fix/7z-delta-filter

Conversation

@pmaciel

@pmaciel pmaciel commented Nov 10, 2026

Copy link
Copy Markdown

I came across a music archive compressed by 7-Zip with the Delta filter, which Cog couldn't open. This adds Delta to the bundled 7z decoder. It uses the Delta.c that already ships with the LZMA SDK copy in File_Extractor, so there are no new dependencies.

Tested with a Debug build: the archive now opens and its tracks are listed.

As far as I can tell, this is in line with the project's conventions, a small and self-contained change inside the existing decoder. Thanks for Cog, it's a great player.

Archives made by current 7-Zip often pair LZMA2 with a Delta filter
(the joshw.info Mega Drive VGM packs, for one). The bundled LZMA SDK 9.20
decoder only accepted BCJ and ARM as a second coder, so every file in such
an archive failed with SZ_ERROR_UNSUPPORTED and would not play. Delta.c was
already compiled in; wire it into CheckSupportedFolder and SzFolder_Decode2,
as later LZMA SDK releases do.
@kode54
kode54 merged commit 54fa743 into losnoco:main Nov 11, 2026
2 checks passed
@pmaciel
pmaciel deleted the fix/7z-delta-filter branch November 11, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants