-
Notifications
You must be signed in to change notification settings - Fork 14
add nmhd and sthd boxes #103
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
Conversation
nmhd is the null media header box, and is used for metadata and text tracks (14496-12, Sections 8.4.5.2, 12.3.2 and 12.5.2 sthd is the subtitle header box (14496-12, Section 12.6.2) These boxes are very similar, and the test changes would affect both.
WalkthroughThis pull request adds support for two new atom types, Nmhd and Sthd, to the media container library. The changes introduce two new enum variants to the Any enum, create corresponding module implementations in the minf hierarchy with full AtomExt trait support, and extend the Minf struct with optional fields for both atom types. Multiple test files are updated to use Default::default() pattern for Minf initialization instead of explicitly setting certain fields to None. The implementation includes encoding/decoding logic for the new atoms and updates the atom nesting rules to recognize Nmhd and Sthd as optional components within Minf. 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (13)
🧰 Additional context used📓 Path-based instructions (5)**/*.rs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/**/*.rs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/test/**📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/moov/**📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/any.rs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (5)📓 Common learnings📚 Learning: 2025-08-31T04:06:57.364ZApplied to files:
📚 Learning: 2025-08-31T04:06:57.364ZApplied to files:
📚 Learning: 2025-08-31T04:06:57.364ZApplied to files:
📚 Learning: 2025-08-31T04:06:57.364ZApplied to files:
🧬 Code graph analysis (2)src/moov/trak/mdia/minf/sthd.rs (1)
src/moov/trak/mdia/minf/nmhd.rs (2)
🔇 Additional comments (17)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
nmhd is the null media header box, and is used for metadata and text tracks (14496-12, Sections 8.4.5.2, 12.3.2 and 12.5.2)
sthd is the subtitle header box (14496-12, Section 12.6.2)
These boxes are very similar, and the test changes would affect both.