mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
use cache for flv tag header.
This commit is contained in:
parent
0e1ac2b923
commit
8a9dbaefb7
2 changed files with 18 additions and 12 deletions
|
@ -35,6 +35,9 @@ class SrsStream;
|
|||
class SrsFileWriter;
|
||||
class SrsFileReader;
|
||||
|
||||
#define SRS_FLV_TAG_HEADER_SIZE 11
|
||||
#define SRS_FLV_PREVIOUS_TAG_SIZE 4
|
||||
|
||||
/**
|
||||
* encode data to flv file.
|
||||
*/
|
||||
|
@ -44,6 +47,7 @@ private:
|
|||
SrsFileWriter* _fs;
|
||||
private:
|
||||
SrsStream* tag_stream;
|
||||
char tag_header[SRS_FLV_TAG_HEADER_SIZE];
|
||||
public:
|
||||
SrsFlvEncoder();
|
||||
virtual ~SrsFlvEncoder();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue