VirtualBox

Changeset 75077 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Oct 25, 2018 2:44:05 PM (6 years ago)
Author:
vboxsync
Message:

VideoRec/DrvAudioVideoRec: Use an absolute timestamp since program start for the encoding PTS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp

    r75011 r75077  
    776776
    777777            if (pStreamAV->uLastPTSMs == 0)
    778                 pStreamAV->uLastPTSMs = RTTimeMilliTS() - pSink->tsStartMs;
     778                pStreamAV->uLastPTSMs = RTTimeProgramMilliTS(); /* We want the absolute time (in ms) since program start. */
    779779
    780780            const uint64_t uDurationMs = pSink->Codec.Opus.msFrame * cEncFrames;
    781             const uint64_t uPTSMs      = pStreamAV->uLastPTSMs + uDurationMs;
     781            const uint64_t uPTSMs      = pStreamAV->uLastPTSMs;
    782782
    783783            pStreamAV->uLastPTSMs += uDurationMs;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette