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: elng should be full box #361

Merged
merged 1 commit into from
Jul 12, 2024
Merged

fix: elng should be full box #361

merged 1 commit into from
Jul 12, 2024

Conversation

tobbee
Copy link
Collaborator

@tobbee tobbee commented Jul 7, 2024

The elng box was errononously not reading/writing full box headers. This is now changed, but one can still read the old errononous type.

This should solve the re-opened issue #245 where the moov box could not be parsed.

The elng box was errononously not reading/writing full box headers.
This is now changed, but one can still read the old errononous type.
Copy link

@gastonmorixe gastonmorixe left a comment

Choose a reason for hiding this comment

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

LGTM thank you

Comment on lines +11 to +25
// Defined in ISO/IEC 14496-12 Section 8.4.6
// It should be a full box, but was erronously implemented
// as a normal box. For backwards compatibility, the
// erronous box without full header can still be decoded.
// The method MissingFullBoxBytes() returns true if that is the case.
type ElngBox struct {
Language string
missingFullBox bool
Version byte
Flags uint32
Language string
}

// MissingFullBoxBytes indicates that the box is errornously not including the 4 full box header bytes
func (b *ElngBox) MissingFullBoxBytes() bool {
return b.missingFullBox

Choose a reason for hiding this comment

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

👍🏻

@tobbee tobbee merged commit bfe9e9d into master Jul 12, 2024
7 checks passed
@tobbee tobbee deleted the fix-elng branch July 12, 2024 10:15
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.

2 participants