Skip to content

Add the Bink 2 decoder to the FFmpeg port - #568

Closed
owenisas wants to merge 1 commit into
CommitteeOfZero:masterfrom
owenisas:bink2-decoder
Closed

owenisas wants to merge 1 commit into
CommitteeOfZero:masterfrom
owenisas:bink2-decoder

Conversation

@owenisas

Copy link
Copy Markdown

STEINS;GATE 0's Steam release ships its movies as Bink 2, which FFmpeg can't decode. This adds an overlay port that is vcpkg's ffmpeg 7.1.2#5 port (the version vcpkg.json already pins), unchanged apart from two patches and three lines in portfile.cmake:

  • 1000-bink2-decoder.patch is the decoder from sharpemu/ffmpeg-core@3b502d4, LGPL-2.1-or-later like the rest of FFmpeg.
  • 1001-bink2-alpha-boolean.patch: the decoder kept the alpha flag as its raw bit (0x100000) and then looped over 3 + has_alpha planes, which crashed on movies with alpha.

The copy can be checked with diff -r against vcpkg's 7.1.2#5 port tree (bf414f1e). One known gap: IMV006 starts with a frame flag the decoder doesn't handle, so each loop of that movie starts one frame late.

Copilot AI balanced review requested due to automatic review settings October 23, 2026 08:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

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.

3 participants