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

Handle ASCII-encoded segmentation UPIDs correctly #32

Merged
merged 7 commits into from
Aug 2, 2023

Conversation

blahspam
Copy link
Collaborator

@blahspam blahspam commented Aug 1, 2023

No description provided.

@CLAassistant
Copy link

CLAassistant commented Aug 1, 2023

CLA assistant check
All committers have signed the CLA.

@blahspam
Copy link
Collaborator Author

blahspam commented Aug 1, 2023

@sbowman Can you do a quick review of my changes... and sign the CLA so I can eventually merge this?

I've modified your approach and changed it such that the models always use UTF8 but converts from Latin1 on decode and back on encode. This resolves a number of issues that your original fix didn't address around XML/JSON representation and lossless decoding and encoding.

Thanks.

Copy link
Collaborator

@sbowman sbowman left a comment

Choose a reason for hiding this comment

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

I think the ASCII is supposed to be printable characters, based on page 69 of SCTE_35_2022b.pdf

pkg/scte35/segmentation_upid.go Outdated Show resolved Hide resolved
pkg/scte35/segmentation_upid.go Outdated Show resolved Hide resolved
@blahspam
Copy link
Collaborator Author

blahspam commented Aug 1, 2023

Made changes per your feedback. If theres nothing else I'll merge it in tomorrow.

@blahspam blahspam merged commit 377cee5 into main Aug 2, 2023
@blahspam blahspam deleted the ascii-upid-support branch August 2, 2023 16:44
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