summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/abema/go-mp4/read.go4
-rw-r--r--vendor/modules.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/abema/go-mp4/read.go b/vendor/github.com/abema/go-mp4/read.go
index fa69561aa..e4fadb121 100644
--- a/vendor/github.com/abema/go-mp4/read.go
+++ b/vendor/github.com/abema/go-mp4/read.go
@@ -148,7 +148,7 @@ func readBoxStructureFromInternal(r io.ReadSeeker, bi *BoxInfo, path BoxPath, ha
func readBoxStructure(r io.ReadSeeker, totalSize uint64, isRoot bool, path BoxPath, ctx Context, handler ReadHandler, params []interface{}) ([]interface{}, error) {
vals := make([]interface{}, 0, 8)
- for isRoot || totalSize != 0 {
+ for isRoot || totalSize >= SmallHeaderSize {
bi, err := ReadBoxInfo(r)
if isRoot && err == io.EOF {
return vals, nil
@@ -174,7 +174,7 @@ func readBoxStructure(r io.ReadSeeker, totalSize uint64, isRoot bool, path BoxPa
}
}
- if totalSize != 0 {
+ if totalSize != 0 && !ctx.IsQuickTimeCompatible {
return nil, errors.New("Unexpected EOF")
}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 792602dd5..ca6d99f33 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -73,7 +73,7 @@ codeberg.org/gruf/go-store/v2/util
## explicit; go 1.19
github.com/KimMachineGun/automemlimit
github.com/KimMachineGun/automemlimit/memlimit
-# github.com/abema/go-mp4 v0.10.0
+# github.com/abema/go-mp4 v0.10.1
## explicit; go 1.14
github.com/abema/go-mp4
github.com/abema/go-mp4/bitio