VirtualBox

Changeset 65392 in vbox


Ignore:
Timestamp:
Jan 20, 2017 3:35:54 PM (8 years ago)
Author:
vboxsync
Message:

Main/EbmlWriter: Use defines for WebM block flags.

File:
1 edited

Legend:

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

    r65391 r65392  
    278278
    279279};
     280
     281/** No flags specified. */
     282#define VBOX_WEBM_BLOCK_FLAG_NONE           0
     283/** Invisible block which can be skipped. */
     284#define VBOX_WEBM_BLOCK_FLAG_INVISIBLE      0x08
     285/** The block marks a key frame. */
     286#define VBOX_WEBM_BLOCK_FLAG_KEY_FRAME      0x80
    280287
    281288class WebMWriter_Impl
     
    755762        uint8_t fFlags = 0;
    756763        if (fKeyframe)
    757             fFlags |= 0x80; /* Key frame. */
     764            fFlags |= VBOX_WEBM_BLOCK_FLAG_KEY_FRAME;
    758765        if (a_pPkt->data.frame.flags & VPX_FRAME_IS_INVISIBLE)
    759             fFlags |= 0x08; /* Invisible frame. */
     766            fFlags |= VBOX_WEBM_BLOCK_FLAG_INVISIBLE;
    760767
    761768        return writeSimpleBlockInternal(a_pTrack, tcBlock, a_pPkt->data.frame.buf, a_pPkt->data.frame.sz, fFlags);
     
    834841        Cluster.cbData  += cbData;
    835842
    836         return writeSimpleBlockInternal(a_pTrack, tcBlock, pvData, cbData, 0x80 /* Flags */);
     843        return writeSimpleBlockInternal(a_pTrack, tcBlock, pvData, cbData, VBOX_WEBM_BLOCK_FLAG_KEY_FRAME);
    837844    }
    838845#endif /* VBOX_WITH_LIBOPUS */
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