Created
October 27, 2013 04:47
-
-
Save mntone/7178088 to your computer and use it in GitHub Desktop.
flv header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_declspec( align( 1 ) ) | |
class flv_header | |
{ | |
public: | |
flv_header( void ): | |
version( 1 ) | |
{ | |
memcpy( signature, "FLV", 3 ); | |
} | |
private: | |
char signature[3]; | |
uint8_t version; | |
public: | |
unsigned type_flags_video : 1; | |
unsigned : 1; | |
unsigned type_flags_audio : 1; | |
unsigned : 5; | |
uint32_t data_offset; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment