Fix AV1 validation false positives for "Corrupt frame detected" errors#396
Merged
ShaneIsrael merged 2 commits intodevelopfrom Jan 20, 2026
Merged
Fix AV1 validation false positives for "Corrupt frame detected" errors#396ShaneIsrael merged 2 commits intodevelopfrom
ShaneIsrael merged 2 commits intodevelopfrom
Conversation
When validating AV1 files, be more lenient about known false positive error messages like "Corrupt frame detected" or "No sequence header". These can occur during initial frame decoding of valid AV1 files but don't indicate actual file corruption. The fix restructures the validation logic so that for AV1 source files: 1. Known false positive indicators are tracked separately 2. Real errors still cause immediate failure 3. If only false positives are found (regardless of returncode), file is valid 4. If returncode is non-zero with no known indicators, it fails appropriately Co-authored-by: ShaneIsrael <[email protected]>
Copilot
AI
changed the title
[WIP] Improve detection for working AV1 encoded files
Fix AV1 validation false positives for "Corrupt frame detected" errors
Jan 20, 2026
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.
AV1 files were incorrectly rejected during transcode validation when ffmpeg reported "Corrupt frame detected" or "No sequence header" errors. These are known false positives for AV1 files with temporal scalability or non-standard sequence header placement—files play correctly but fail validation.
Changes
returncode == 0)Behavior
returncode=1returncode=1Known AV1 false positive indicators:
Corrupt frame detectedNo sequence headerError submitting packet to decoderDecode error rateInvalid NAL unit sizenon-existing PPSOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.