VirtualBox

Changeset 68370 in vbox


Ignore:
Timestamp:
Aug 10, 2017 1:35:03 PM (7 years ago)
Author:
vboxsync
Message:

Main/EbmlWriter.cpp: Introduced VBOX_WEBM_TIMECODESCALE_FACTOR_MS define.

File:
1 edited

Legend:

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

    r68338 r68370  
    304304/** The block marks a key frame. */
    305305#define VBOX_WEBM_BLOCK_FLAG_KEY_FRAME      0x80
     306
     307/** The default timecode scale factor for WebM -- all timecodes in the segments are expressed in ms.
     308 *  This allows every cluster to have blocks with positive values up to 32.767 seconds. */
     309#define VBOX_WEBM_TIMECODESCALE_FACTOR_MS   1000000
    306310
    307311class WebMWriter_Impl
     
    431435            , offCues(0)
    432436        {
    433             /* This is the default for WebM -- all timecodes in the segments are expressed in ms.
    434              * This allows every cluster to have blocks with positive values up to 32.767 seconds. */
    435             uTimecodeScaleFactor = 1000000;
    436             //m_uTimecodeScaleFactor = lround(1000000000 /* ns */ / 48000);
     437            uTimecodeScaleFactor = VBOX_WEBM_TIMECODESCALE_FACTOR_MS;
    437438
    438439            LogFunc(("Default timecode scale is: %RU64ns\n", uTimecodeScaleFactor));
    439440        }
    440441
    441         /** The timecode scale factor of this segment.
    442          *  By default this is 1000000, which is 1ms per timecode unit. */
     442        /** The timecode scale factor of this segment. */
    443443        uint64_t                        uTimecodeScaleFactor;
    444444
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