Skip to content

Commit

Permalink
Merge pull request #147 from aler9/patch/mp4v
Browse files Browse the repository at this point in the history
Add mp4v box
  • Loading branch information
sunfish-shogi authored Sep 24, 2023
2 parents 67e24d6 + 4a61910 commit 065cad1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions box_types_iso14496_12.go
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,7 @@ func (*Saiz) GetType() BoxType {

/*********************** SampleEntry *************************/

func BoxTypeMp4v() BoxType { return StrToBoxType("mp4v") }
func BoxTypeAvc1() BoxType { return StrToBoxType("avc1") }
func BoxTypeEncv() BoxType { return StrToBoxType("encv") }
func BoxTypeHev1() BoxType { return StrToBoxType("hev1") }
Expand All @@ -1207,6 +1208,7 @@ func BoxTypeAvcC() BoxType { return StrToBoxType("avcC") }
func BoxTypePasp() BoxType { return StrToBoxType("pasp") }

func init() {
AddAnyTypeBoxDef(&VisualSampleEntry{}, BoxTypeMp4v())
AddAnyTypeBoxDef(&VisualSampleEntry{}, BoxTypeAvc1())
AddAnyTypeBoxDef(&VisualSampleEntry{}, BoxTypeEncv())
AddAnyTypeBoxDef(&VisualSampleEntry{}, BoxTypeHev1())
Expand Down

0 comments on commit 065cad1

Please sign in to comment.