Skip to content

Instantly share code, notes, and snippets.

@mntone
Created October 27, 2013 04:47
Show Gist options
  • Save mntone/7178088 to your computer and use it in GitHub Desktop.
Save mntone/7178088 to your computer and use it in GitHub Desktop.
flv header
_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