summaryrefslogtreecommitdiff
path: root/vendor/github.com
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-03-13 09:52:57 +0100
committerLibravatar GitHub <noreply@github.com>2023-03-13 09:52:57 +0100
commit86dafa687184fc013df5c6f2198b1c936ddd226c (patch)
tree4d56a1bfa65928a8e0b03407ea3ce2ebbce703b8 /vendor/github.com
parent[chore]: Bump golang.org/x/image from 0.5.0 to 0.6.0 (#1615) (diff)
downloadgotosocial-86dafa687184fc013df5c6f2198b1c936ddd226c.tar.xz
[chore]: Bump github.com/abema/go-mp4 from 0.10.0 to 0.10.1 (#1617)
Bumps [github.com/abema/go-mp4](https://github.com/abema/go-mp4) from 0.10.0 to 0.10.1. - [Release notes](https://github.com/abema/go-mp4/releases) - [Commits](https://github.com/abema/go-mp4/compare/v0.10.0...v0.10.1) --- updated-dependencies: - dependency-name: github.com/abema/go-mp4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com')
-rw-r--r--vendor/github.com/abema/go-mp4/read.go4
1 files changed, 2 insertions, 2 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")
}