File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ func (f *formatFMP4) initialize() bool {
611
611
Payload : packet ,
612
612
},
613
613
dts : pts ,
614
- ntp : tunit .NTP .Add (timestampToDuration (pts , clockRate )),
614
+ ntp : tunit .NTP .Add (timestampToDuration (pts - tunit . PTS , clockRate )),
615
615
})
616
616
if err != nil {
617
617
return err
@@ -649,7 +649,7 @@ func (f *formatFMP4) initialize() bool {
649
649
Payload : au ,
650
650
},
651
651
dts : pts ,
652
- ntp : tunit .NTP .Add (timestampToDuration (pts , clockRate )),
652
+ ntp : tunit .NTP .Add (timestampToDuration (pts - tunit . PTS , clockRate )),
653
653
})
654
654
if err != nil {
655
655
return err
@@ -771,7 +771,7 @@ func (f *formatFMP4) initialize() bool {
771
771
Payload : frame ,
772
772
},
773
773
dts : pts ,
774
- ntp : tunit .NTP .Add (timestampToDuration (pts , clockRate )),
774
+ ntp : tunit .NTP .Add (timestampToDuration (pts - tunit . PTS , clockRate )),
775
775
})
776
776
if err != nil {
777
777
return err
You can’t perform that action at this time.
0 commit comments