mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 19:32:26 -05:00
[chore]: Bump github.com/abema/go-mp4 from 1.0.0 to 1.1.1 (#2257)
Bumps [github.com/abema/go-mp4](https://github.com/abema/go-mp4) from 1.0.0 to 1.1.1. - [Release notes](https://github.com/abema/go-mp4/releases) - [Commits](https://github.com/abema/go-mp4/compare/v1.0.0...v1.1.1) --- updated-dependencies: - dependency-name: github.com/abema/go-mp4 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
5aeceb5ff7
commit
abd598e8f6
7 changed files with 81 additions and 11 deletions
6
vendor/github.com/abema/go-mp4/box_info.go
generated
vendored
6
vendor/github.com/abema/go-mp4/box_info.go
generated
vendored
|
|
@ -3,6 +3,7 @@ package mp4
|
|||
import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
)
|
||||
|
|
@ -128,7 +129,6 @@ func ReadBoxInfo(r io.ReadSeeker) (*BoxInfo, error) {
|
|||
if _, err := bi.SeekToPayload(r); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
} else if bi.Size == 1 {
|
||||
// read more 8 bytes
|
||||
buf.Reset()
|
||||
|
|
@ -139,6 +139,10 @@ func ReadBoxInfo(r io.ReadSeeker) (*BoxInfo, error) {
|
|||
bi.Size = binary.BigEndian.Uint64(buf.Bytes())
|
||||
}
|
||||
|
||||
if bi.Size == 0 {
|
||||
return nil, fmt.Errorf("invalid size")
|
||||
}
|
||||
|
||||
return bi, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue