Skip to content

Add aligment fix for 4:2 planar video#332

Open
Fktor wants to merge 1 commit into
ValveSoftware:proton_10.0from
Fktor:proton_10.0
Open

Add aligment fix for 4:2 planar video#332
Fktor wants to merge 1 commit into
ValveSoftware:proton_10.0from
Fktor:proton_10.0

Conversation

@Fktor
Copy link
Copy Markdown

@Fktor Fktor commented Jun 1, 2026

@Fktor
Copy link
Copy Markdown
Author

Fktor commented Jun 1, 2026

Trying to fix a Resident Evil 0 video issue. The problem is that we have a video in 4:2:0 format, and the uv planes have a width that is not a multiple of 4. Gstreamer forces the stride to be aligned to 4, while the game expects the original stride. This causes visual green/red line artifacts.

I've attached the fix to a NV12 fix that was already present since they're from the same family of problems.

First time trying to fix something in Proton, so give it a hard look.

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.

1 participant