Skip to content

Commit

Permalink
move MP4 boxes inside go-mp4
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Jan 16, 2024
1 parent b051aac commit 252e2ce
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 34 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/bluenviron/mediacommon
go 1.19

require (
github.com/abema/go-mp4 v1.1.1
github.com/abema/go-mp4 v1.2.0
github.com/asticode/go-astits v1.13.0
github.com/stretchr/testify v1.8.4
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/abema/go-mp4 v1.1.1 h1:OfzkdMO6SWTBR1ltNSVwlTHatrAK9I3iYLQfkdEMMuc=
github.com/abema/go-mp4 v1.1.1/go.mod h1:vPl9t5ZK7K0x68jh12/+ECWBCXoWuIDtNgPtU2f04ws=
github.com/abema/go-mp4 v1.2.0 h1:gi4X8xg/m179N/J15Fn5ugywN9vtI6PLk6iLldHGLAk=
github.com/abema/go-mp4 v1.2.0/go.mod h1:vPl9t5ZK7K0x68jh12/+ECWBCXoWuIDtNgPtU2f04ws=
github.com/asticode/go-astikit v0.30.0 h1:DkBkRQRIxYcknlaU7W7ksNfn4gMFsB0tqMJflxkRsZA=
github.com/asticode/go-astikit v0.30.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0=
github.com/asticode/go-astits v1.13.0 h1:XOgkaadfZODnyZRR5Y0/DWkA9vrkLLPLeeOvDwfKZ1c=
Expand Down
28 changes: 0 additions & 28 deletions pkg/formats/fmp4/boxes.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/formats/fmp4/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ func (i *Init) Unmarshal(r io.ReadSeeker) error {
if err != nil {
return nil, err
}
pcmc := box.(*PcmC)
pcmc := box.(*mp4.PcmC)

curTrack.Codec = &CodecLPCM{
LittleEndian: (pcmc.FormatFlags & 0x01) != 0,
Expand Down
4 changes: 2 additions & 2 deletions pkg/formats/fmp4/init_track.go
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ func (track *InitTrack) marshal(w *mp4Writer) error {
_, err = w.writeBoxStart(&mp4.AudioSampleEntry{ // <ipcm>
SampleEntry: mp4.SampleEntry{
AnyTypeBox: mp4.AnyTypeBox{
Type: BoxTypeIpcm(),
Type: mp4.BoxTypeIpcm(),
},
DataReferenceIndex: 1,
},
Expand All @@ -816,7 +816,7 @@ func (track *InitTrack) marshal(w *mp4Writer) error {
return err
}

_, err = w.writeBox(&PcmC{ // <pcmC/>
_, err = w.writeBox(&mp4.PcmC{ // <pcmC/>
FormatFlags: func() uint8 {
if codec.LittleEndian {
return 1
Expand Down

0 comments on commit 252e2ce

Please sign in to comment.