Repository navigation
fix(reader): colour the header does not state is read from the first sample for VP9, AV1 and HEVC alike - #35
Merged
Conversation
…olour gets its colour from the keyframe header
…C with no sequence header and an hvcC with no SPS leave the colour to the first sample
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.
Under the first-sample fallback (
WithInBandColourFallback,-in-band,mp4.Options.InBandColour), some video tracks whose header names no colour never got it from their first sample. Reported by the downstream consumer on a real VP9 file, which it then sent to its second prober.b96b03e- a VP9 track whose CodecPrivate holds the Matroska feature records (profile, bit depth, chroma, no colour) and that has no Colour element: the keyframe header was read only when the profile was missing.ac5a9de- the same hole, looked for in the other codecs:av1Cholds no sequence header: a PQ video read as having no colour;hvcCholds arrays but no SPS.The rule is now one: no colour named by the container, and a codec record that states none. A track whose header states its colour reads no sample more; a VP9 Matroska file with no colour anywhere costs one more bounded read under the option.
Checks, on
ac5a9de:make preflight RELEASE=v0.71.1exit 0 in a container (gorelease asks for v0.71.1);FuzzReadMetaandFuzzCodecColour, 20 s each, exit 0;b96b03eon the real file and ran its Go suite against it: exit 0.Not covered: the consumer's suite on
ac5a9de(asked); H.264 with no SPS in its record (not an HDR codec, left as is).