container/mts: fixed build error

This commit is contained in:
Saxon 2019-05-11 12:49:31 +09:30
parent 594dca1b21
commit e2d9853264
1 changed files with 2 additions and 2 deletions

View File

@ -303,12 +303,12 @@ func (e *Encoder) tick() {
// pts retuns the current presentation timestamp. // pts retuns the current presentation timestamp.
func (e *Encoder) pts() uint64 { func (e *Encoder) pts() uint64 {
return uint64((e.clock + e.ptsOffset).Seconds() * pcrFreq) return uint64((e.clock + e.ptsOffset).Seconds() * PTSFreq)
} }
// pcr returns the current program clock reference. // pcr returns the current program clock reference.
func (e *Encoder) pcr() uint64 { func (e *Encoder) pcr() uint64 {
return uint64(e.clock.Seconds() * pcrFreq) return uint64(e.clock.Seconds() * PCRFreq)
} }
// ccFor returns the next continuity counter for pid. // ccFor returns the next continuity counter for pid.