-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mp4-tools: fix hevc 608 captions (#4972)
hevc nal header is different than avc. avc nal header has the format - forbidden_zero_bit All f(1) nal_ref_idc All u(2) nal_unit_type All u(5) while hevc nal header has the format - forbidden_zero_bit f(1) nal_unit_type u(6) nuh_layer_id u(6) nuh_temporal_id_plus1 u(3) therefore - 1. need to skip 2 bytes instead of 1 when parsing the SEI body 2. to get the nal unit type, need to do (x >> 1) & 0x3f, instead of x & 0x1f
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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