Skip to content

Commit

Permalink
Merge pull request #251 from Eyevinn/sei136-fix
Browse files Browse the repository at this point in the history
Fix  SEI136 time offset output
  • Loading branch information
tobbee authored May 25, 2023
2 parents f7791e0 + 5d4974f commit b1d61e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add WriteFlag method to SliceWriter interface (present in FixedSliceWriter)
- Parsing of AVC SEI pic_timing with HRD parameters
- mp4ff-nallister handles AVC SEI pic_timing with HRD parameters if SPS is present
- fix error in TimeOffset output of SEI 136

### Added

Expand Down
2 changes: 1 addition & 1 deletion sei/sei136.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (s *TimeCodeSEI) Payload() []byte {
}
sw.WriteBits(uint(c.TimeOffsetLength), 5)
if c.TimeOffsetLength > 0 {
sw.WriteBits(uint(c.TimeOffsetLength), int(c.TimeOffsetLength))
sw.WriteBits(uint(c.TimeOffsetValue), int(c.TimeOffsetLength))
}
}
}
Expand Down

0 comments on commit b1d61e9

Please sign in to comment.