Repository navigation
serve: derive the EBML master set from ebml-go's element table - #2
Merged
Merged
Conversation
The hand-written list lacked BlockAdditionMapping (0x41E4), Slices (0x8E), BlockMore (0xA6), TimeSlice (0xE8) and others that ebml-go treats as masters, so laced blocks nested in them escaped the frame counter (go-avkit/avkit#120). The set is now every ElementType whose DataType is Master. A test fails if the set and the table differ; a bomb test of 10,000 laced blocks in each of those masters is refused as video.limit and fails without the change. Refs go-avkit/avkit#89 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs go-avkit/avkit#89
Refs go-avkit/avkit#120
Refs go-avkit/avkit#121
The laced-block frame counter of v0.1.0 only descended into a hand-written list of master elements. ebml-go, which the container reader decodes with, treats more elements as masters (BlockAdditionMapping 0x41E4, Slices 0x8E, BlockMore 0xA6, TimeSlice 0xE8, ...), so laced blocks nested in them escaped the count (reported on go-avkit/avkit#120 and in the review of go-avkit/avkit#121).
ebmlMastersis derived from ebml-go's element table: everyElementTypewhoseDataTypeis Master.TestMastersAgreeWithEbmlGoTablefails if the set and the table differ, element by element, and pins the ids named by the review and the old list.TestLacedBlocksInOtherMastersAreCounted: 10,000 laced blocks (70 KB) in each of those masters is refused asvideo.limitwith about 2.5 KB allocated. Without the change the test fails (checked by stashingscan.go).If avkit exports its own table after its fix, this should switch to it.
🤖 Generated with Claude Code