1
0
Fork 0
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:
winlin 2015-05-24 23:16:56 +08:00
parent 0e1ac2b923
commit 8a9dbaefb7
2 changed files with 18 additions and 12 deletions

View file

@ -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();