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(cea): make a more robust CEA MP4 parser #3965

Merged
merged 4 commits into from Feb 24, 2022

Conversation

avelad
Copy link
Collaborator

@avelad avelad commented Feb 17, 2022

Comment on lines 241 to 245
} catch (e) {
if (e instanceof shaka.util.Error) {
break;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

I don't quite understand the logic here. Some comments may be helpful.

If the error is a shaka.util.Error, you break out of the loop. If it's some other kind of error, you continue. I don't understand the purpose of either.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you are right, although the function really only throws this error, it can be applied to everything.

@joeyparrish joeyparrish merged commit 2687b95 into shaka-project:master Feb 24, 2022
@avelad
Copy link
Collaborator Author

avelad commented Feb 24, 2022

Thanks @joeyparrish !

@avelad avelad deleted the fix-mp4-cea-parser branch February 25, 2022 06:54
@avelad avelad added this to the v4.0 milestone May 4, 2022
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants