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

allow reading at the top level with EbmlHead+doctype top elements #294

Open
robUx4 opened this issue Mar 4, 2024 · 1 comment
Open

allow reading at the top level with EbmlHead+doctype top elements #294

robUx4 opened this issue Mar 4, 2024 · 1 comment

Comments

@robUx4
Copy link
Contributor

robUx4 commented Mar 4, 2024

To start reading an EBML file, one needs to use FindNextID() allowing only a single top level element to be detected, or with FindNextElement() which can find any element that is inside an EbmlSemanticContext. But it's currently not possible to combine EbmlHead with, for example, KaxSegment. They have their parent semantic hardcoded to nullptr.

In addition a CRC32 global element should never be allowed if it's not in an EbmlMaster (and may even has to be the first child?). Void may also not be allowed there (I need to check the RFC). So global elements should be handled in a special way there.

Maybe we need a special API to get the parsing started with both the EbmlHead (which is known to libebml) and the top level semantic to use.

@robUx4
Copy link
Contributor Author

robUx4 commented Mar 4, 2024

libmatroska has KaxMatroska But there's still the problem of global elements handling. Eventually it might be better to just pass a list of (2) elements allowed at that level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant