From 5a4ceebcbd06f48eebaa3fb2766b22da5b85f15e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 16 Aug 2023 16:10:01 +0100 Subject: [PATCH] [chore]: Bump github.com/abema/go-mp4 from 0.12.0 to 0.13.0 (#2113) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 +- .../github.com/abema/go-mp4/box_types_vp.go | 53 +++++++++++++++++++ vendor/modules.txt | 2 +- 4 files changed, 57 insertions(+), 4 deletions(-) create mode 100644 vendor/github.com/abema/go-mp4/box_types_vp.go diff --git a/go.mod b/go.mod index 0cfaa0c76..c1ca7612c 100644 --- a/go.mod +++ b/go.mod @@ -18,7 +18,7 @@ require ( codeberg.org/gruf/go-store/v2 v2.2.2 github.com/DmitriyVTitov/size v1.5.0 github.com/KimMachineGun/automemlimit v0.2.6 - github.com/abema/go-mp4 v0.12.0 + github.com/abema/go-mp4 v0.13.0 github.com/buckket/go-blurhash v1.1.0 github.com/coreos/go-oidc/v3 v3.6.0 github.com/disintegration/imaging v1.6.2 diff --git a/go.sum b/go.sum index 58bc144d7..29b9333d0 100644 --- a/go.sum +++ b/go.sum @@ -92,8 +92,8 @@ github.com/DmitriyVTitov/size v1.5.0/go.mod h1:le6rNI4CoLQV1b9gzp1+3d7hMAD/uu2Qc github.com/KimMachineGun/automemlimit v0.2.6 h1:tQFriVTcIteUkV5EgU9iz03eDY36T8JU5RAjP2r6Kt0= github.com/KimMachineGun/automemlimit v0.2.6/go.mod h1:pJhTW/nWJMj6SnWSU2TEKSlCaM+1N5Mej+IfS/5/Ol0= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/abema/go-mp4 v0.12.0 h1:XI9PPt1BpjB3wFl18oFiX6C99uesx7F/X13Z+ga8bYY= -github.com/abema/go-mp4 v0.12.0/go.mod h1:vPl9t5ZK7K0x68jh12/+ECWBCXoWuIDtNgPtU2f04ws= +github.com/abema/go-mp4 v0.13.0 h1:gjEZLt7g0ePpYA5sUDrI2r8X+WuI8o+USkgG5wMgmkI= +github.com/abema/go-mp4 v0.13.0/go.mod h1:vPl9t5ZK7K0x68jh12/+ECWBCXoWuIDtNgPtU2f04ws= github.com/ajg/form v1.5.1 h1:t9c7v8JUKu/XxOGBU0yjNpaMloxGEJhUkqFRq0ibGeU= github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY= github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= diff --git a/vendor/github.com/abema/go-mp4/box_types_vp.go b/vendor/github.com/abema/go-mp4/box_types_vp.go new file mode 100644 index 000000000..6927b2190 --- /dev/null +++ b/vendor/github.com/abema/go-mp4/box_types_vp.go @@ -0,0 +1,53 @@ +package mp4 + +// https://www.webmproject.org/vp9/mp4/ + +/*************************** vp08 ****************************/ + +func BoxTypeVp08() BoxType { return StrToBoxType("vp08") } + +func init() { + AddAnyTypeBoxDef(&VisualSampleEntry{}, BoxTypeVp08()) +} + +/*************************** vp09 ****************************/ + +func BoxTypeVp09() BoxType { return StrToBoxType("vp09") } + +func init() { + AddAnyTypeBoxDef(&VisualSampleEntry{}, BoxTypeVp09()) +} + +/*************************** VpcC ****************************/ + +func BoxTypeVpcC() BoxType { return StrToBoxType("vpcC") } + +func init() { + AddBoxDef(&VpcC{}) +} + +type VpcC struct { + FullBox `mp4:"0,extend"` + Profile uint8 `mp4:"1,size=8"` + Level uint8 `mp4:"2,size=8"` + BitDepth uint8 `mp4:"3,size=4"` + ChromaSubsampling uint8 `mp4:"4,size=3"` + VideoFullRangeFlag uint8 `mp4:"5,size=1"` + ColourPrimaries uint8 `mp4:"6,size=8"` + TransferCharacteristics uint8 `mp4:"7,size=8"` + MatrixCoefficients uint8 `mp4:"8,size=8"` + CodecInitializationDataSize uint16 `mp4:"9,size=16"` + CodecInitializationData []uint8 `mp4:"10,size=8,len=dynamic"` +} + +func (VpcC) GetType() BoxType { + return BoxTypeVpcC() +} + +func (vpcc VpcC) GetFieldLength(name string, ctx Context) uint { + switch name { + case "CodecInitializationData": + return uint(vpcc.CodecInitializationDataSize) + } + return 0 +} diff --git a/vendor/modules.txt b/vendor/modules.txt index d8d8b9e06..cb6fb499e 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -77,7 +77,7 @@ github.com/DmitriyVTitov/size ## explicit; go 1.19 github.com/KimMachineGun/automemlimit github.com/KimMachineGun/automemlimit/memlimit -# github.com/abema/go-mp4 v0.12.0 +# github.com/abema/go-mp4 v0.13.0 ## explicit; go 1.14 github.com/abema/go-mp4 github.com/abema/go-mp4/bitio