1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix #939, response right A/V flag in FLV header. 3.0.113

This commit is contained in:
winlin 2020-02-04 17:02:02 +08:00
parent 68efca4fa9
commit 4f39303f37
4 changed files with 68 additions and 7 deletions

View file

@ -82,8 +82,9 @@ public:
// Transmux RTMP to HTTP Live Streaming.
class SrsFlvStreamEncoder : public ISrsBufferEncoder
{
protected:
private:
SrsFlvTransmuxer* enc;
bool header_written;
public:
SrsFlvStreamEncoder();
virtual ~SrsFlvStreamEncoder();
@ -98,6 +99,8 @@ public:
public:
// Write the tags in a time.
virtual srs_error_t write_tags(SrsSharedPtrMessage** msgs, int count);
private:
virtual srs_error_t write_header(bool has_video = true, bool has_audio = true);
};
// Transmux RTMP to HTTP TS Streaming.