Skip to content

Commit

Permalink
Add Av01 to StsdBox
Browse files Browse the repository at this point in the history
  • Loading branch information
maximk-1 committed Mar 20, 2024
1 parent 7424634 commit 97f7a84
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mp4/stsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ type StsdBox struct {
AvcX *VisualSampleEntryBox
// HvcX is a pointer to a box with name hvc1 or hev1
HvcX *VisualSampleEntryBox
// Mp4a is a pointer to to a box with name mp4a
// Av01 is a pointer to a box with name av01
Av01 *VisualSampleEntryBox
// Mp4a is a pointer to a box with name mp4a
Mp4a *AudioSampleEntryBox
// AC3 is a pointer to a box with name ac-3
AC3 *AudioSampleEntryBox
Expand All @@ -45,6 +47,8 @@ func (s *StsdBox) AddChild(box Box) {
s.AvcX = box.(*VisualSampleEntryBox)
case "hvc1", "hev1":
s.HvcX = box.(*VisualSampleEntryBox)
case "av01":
s.Av01 = box.(*VisualSampleEntryBox)
case "mp4a":
s.Mp4a = box.(*AudioSampleEntryBox)
case "ac-3":
Expand Down

0 comments on commit 97f7a84

Please sign in to comment.