1
0
Fork 0
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:
Harlan 2018-04-03 22:00:32 +08:00
parent 52596a0b04
commit 43ebd5958d
3 changed files with 26 additions and 16 deletions

View file

@ -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: