Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix decoding of VobSub for different RLE offsets #20

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Fix decoding of VobSub for different RLE offsets #20

merged 2 commits into from
Oct 9, 2024

Conversation

ecdye
Copy link
Owner

@ecdye ecdye commented Oct 9, 2024

This should fix any issues that could occur due to the data being offset from the typical 0 in the RLE buffer. However this has not been tested against a large number of subtitles, so there may be some cases where it either breaks decoding or doesn't properly interact with various RLE offsets.

Fixes #19

This should fix any issues that could occur due to the data being offset
from the typical 0 in the RLE buffer. However this has not been tested
against a large number of subtitles, so there may be some cases where it
either breaks decoding or doesn't properly interact with various RLE
offsets.

Fixes #19

Signed-off-by: Ethan Dye <[email protected]>
@ecdye
Copy link
Owner Author

ecdye commented Oct 9, 2024

@timj if you could test these changes against a bunch of your files and let me know if it breaks others, that would be great.
I'm still working on #18, I got caught up trying to fix this first.

Signed-off-by: Ethan Dye <[email protected]>
@timj
Copy link

timj commented Oct 9, 2024

That definitely fixed my interlaced VOBSUB file. Looks beautiful now. I tried a different interlaced file and it was fine and non-interlaced do work still. I can try to find some more examples another day but this is a genuine enhancement that makes me very happy. Thank you.

@ecdye ecdye merged commit aaccf2f into main Oct 9, 2024
6 checks passed
@ecdye ecdye deleted the issue-19 branch October 9, 2024 17:25
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.

Another VOBSUB crash
2 participants