Skip to content

Commit

Permalink
fix: GetTrex return values
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbee committed Feb 13, 2024
1 parent e29b659 commit 011bf5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- InitSegment.TweakSingleTrakLive changes an init segment to fit live streaming

### Fixed

- GetTrex() return value

## [0.42.0] - 2024-01-26

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions mp4/mvex.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func (m *MvexBox) Info(w io.Writer, specificBoxLevels, indent, indentStep string
func (m *MvexBox) GetTrex(trackID uint32) (trex *TrexBox, ok bool) {
for _, trex := range m.Trexs {
if trex.TrackID == trackID {
return trex, false
return trex, true
}
}
return nil, true
return nil, false
}

0 comments on commit 011bf5d

Please sign in to comment.