mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug that only one stream can be encrypted..
This commit is contained in:
parent
52596a0b04
commit
43ebd5958d
3 changed files with 26 additions and 16 deletions
|
@ -73,7 +73,7 @@ public:
|
|||
std::string keypath;
|
||||
|
||||
public:
|
||||
SrsHlsSegment(SrsTsContext* c, SrsAudioCodecId ac, SrsVideoCodecId vc,bool needenc);
|
||||
SrsHlsSegment(SrsTsContext* c, SrsAudioCodecId ac, SrsVideoCodecId vc, SrsFileWriter *srswriter);
|
||||
virtual ~SrsHlsSegment();
|
||||
public:
|
||||
|
||||
|
@ -170,6 +170,8 @@ private:
|
|||
|
||||
unsigned char key[16];
|
||||
unsigned char iv[16];
|
||||
|
||||
SrsFileWriter *writer;
|
||||
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue