Skip to content

Commit

Permalink
Merge pull request #369 from Eyevinn/stpp-type
Browse files Browse the repository at this point in the history
stpp as value to CreateEmptyTrak
  • Loading branch information
tobbee authored Aug 8, 2024
2 parents 2d7724e + cf62a63 commit 5310a00
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
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
- Event Message boxes evte, emib, emeb
- GetBtrt method to StsdBox
- Btrt pointer attribute in AudioSampleEnntry
- stpp can be used as value to CreateEmptyTrak

## [0.45.1] - 2024-07-12

Expand Down
2 changes: 1 addition & 1 deletion mp4/initsegment.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func CreateEmptyTrak(trackID, timeScale uint32, mediaType, language string) *Tra
minf.AddChild(CreateVmhd())
case "audio":
minf.AddChild(CreateSmhd())
case "subtitle", "subtitles":
case "subtitle", "subtitles", "stpp":
minf.AddChild(&SthdBox{})
case "text", "wvtt":
minf.AddChild(&NmhdBox{})
Expand Down
2 changes: 1 addition & 1 deletion mp4/mediasegment.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// MediaSegment is an MP4 Media Segment with one or more Fragments.
type MediaSegment struct {
Styp *StypBox
Sidx *SidxBox // The fist sidx box in a segment
Sidx *SidxBox // The first sidx box in a segment
Sidxs []*SidxBox // All sidx boxes in a segment
Fragments []*Fragment
EncOptimize EncOptimize
Expand Down
3 changes: 2 additions & 1 deletion mp4/trun.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ func DecodeTrunSR(hdr BoxHeader, startPos uint64, sr bits.SliceReader) (Box, err
return t, sr.AccError()
}

// CreateTrun - create a TrunBox for filling up with samples
// CreateTrun - create a TrunBox for filling up with samples.
// writeOrderNr is only used for multi-trun offsets.
func CreateTrun(writeOrderNr uint32) *TrunBox {
trun := &TrunBox{
Version: 1, // Signed composition_time_offset
Expand Down

0 comments on commit 5310a00

Please sign in to comment.