VirtualBox

Changeset 65541 in vbox for trunk


Ignore:
Timestamp:
Jan 31, 2017 1:44:29 PM (8 years ago)
Author:
vboxsync
Message:

Main/EbmlWriter.cpp: Pass the time stamp for writeBlockOpus(). Not used yet.

File:
1 edited

Legend:

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

    r65435 r65541  
    770770#ifdef VBOX_WITH_LIBOPUS
    771771    /* Audio blocks that have same absolute timecode as video blocks SHOULD be written before the video blocks. */
    772     int writeBlockOpus(WebMTrack *a_pTrack, const void *pvData, size_t cbData)
     772    int writeBlockOpus(WebMTrack *a_pTrack, const void *pvData, size_t cbData, uint64_t uTimeStampMs)
    773773    {
    774774        AssertPtrReturn(a_pTrack, VERR_INVALID_POINTER);
     
    776776        AssertReturn(cbData, VERR_INVALID_PARAMETER);
    777777
     778        RT_NOREF(uTimeStampMs);
     779
    778780        WebMCluster &Cluster = CurSeg.CurCluster;
    779781
     
    788790            Cluster.tcStart = tcPTS;
    789791
    790         LogFunc(("tcPTSRaw=%RU64, tcPTS=%RU64, cbData=%RU64\n", tcPTSRaw, tcPTS, Cluster.cbData));
     792        LogFunc(("tcPTSRaw=%RU64, tcPTS=%RU64, cbData=%RU64, uTimeStampMs=%RU64\n",
     793                 tcPTSRaw, tcPTS, Cluster.cbData, uTimeStampMs));
    791794
    792795        Cluster.tcLast = tcPTS;
     
    873876                    Assert(cbData == sizeof(WebMWriter::BlockData_Opus));
    874877                    WebMWriter::BlockData_Opus *pData = (WebMWriter::BlockData_Opus *)pvData;
    875                     rc = writeBlockOpus(pTrack, pData->pvData, pData->cbData);
     878                    rc = writeBlockOpus(pTrack, pData->pvData, pData->cbData, pData->uTimestampMs);
    876879                }
    877880                else
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