Changeset 65392 in vbox
- Timestamp:
- Jan 20, 2017 3:35:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/EbmlWriter.cpp
r65391 r65392 278 278 279 279 }; 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 280 287 281 288 class WebMWriter_Impl … … 755 762 uint8_t fFlags = 0; 756 763 if (fKeyframe) 757 fFlags |= 0x80; /* Key frame. */764 fFlags |= VBOX_WEBM_BLOCK_FLAG_KEY_FRAME; 758 765 if (a_pPkt->data.frame.flags & VPX_FRAME_IS_INVISIBLE) 759 fFlags |= 0x08; /* Invisible frame. */766 fFlags |= VBOX_WEBM_BLOCK_FLAG_INVISIBLE; 760 767 761 768 return writeSimpleBlockInternal(a_pTrack, tcBlock, a_pPkt->data.frame.buf, a_pPkt->data.frame.sz, fFlags); … … 834 841 Cluster.cbData += cbData; 835 842 836 return writeSimpleBlockInternal(a_pTrack, tcBlock, pvData, cbData, 0x80 /* Flags */);843 return writeSimpleBlockInternal(a_pTrack, tcBlock, pvData, cbData, VBOX_WEBM_BLOCK_FLAG_KEY_FRAME); 837 844 } 838 845 #endif /* VBOX_WITH_LIBOPUS */
Note:
See TracChangeset
for help on using the changeset viewer.