Skip to content

Commit

Permalink
muxer: remove unused variable (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored Oct 3, 2024
1 parent a94e6df commit db10b9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions muxer_part.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func (p *muxerPart) finalize(endDTS time.Duration) error {
Samples: track.fmp4Samples,
})

track.fmp4StartDTSFilled = false
track.fmp4Samples = nil
}
}
Expand All @@ -62,8 +61,7 @@ func (p *muxerPart) finalize(endDTS time.Duration) error {
}

func (p *muxerPart) writeSample(track *muxerTrack, sample *fmp4AugmentedSample) {
if !track.fmp4StartDTSFilled {
track.fmp4StartDTSFilled = true
if track.fmp4Samples == nil {
track.fmp4StartDTS = sample.dts
}

Expand Down
1 change: 0 additions & 1 deletion muxer_track.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ type muxerTrack struct {
fmp4TimeScale uint32 // fmp4 only
fmp4NextSample *fmp4AugmentedSample // fmp4 only
fmp4Samples []*fmp4.PartSample // fmp4 only
fmp4StartDTSFilled bool // fmp4 only
fmp4StartDTS time.Duration // fmp4 only
}

Expand Down

0 comments on commit db10b9f

Please sign in to comment.