Skip to content

Commit

Permalink
Merge pull request #242 from k-danil/SetType_for_AudioSampleEntryBox
Browse files Browse the repository at this point in the history
Add SetType method for AudioSampleEntryBox
  • Loading branch information
tobbee authored Apr 18, 2023
2 parents 7bb419d + 23ed0dc commit 847372b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mp4/audiosamplentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ func (a *AudioSampleEntryBox) Type() string {
return a.name
}

// SetType sets the type (name) of the box
func (a *AudioSampleEntryBox) SetType(name string) {
a.name = name
}

// Size - return calculated size
func (a *AudioSampleEntryBox) Size() uint64 {
totalSize := uint64(nrAudioSampleBytesBeforeChildren)
Expand Down

0 comments on commit 847372b

Please sign in to comment.