mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
enhanced avc decode, parse the sps get width+height. 2.0.156.
This commit is contained in:
parent
7e1749e029
commit
70c59da1bf
9 changed files with 351 additions and 8 deletions
|
@ -154,4 +154,22 @@ public:
|
|||
virtual void write_bytes(char* data, int size);
|
||||
};
|
||||
|
||||
/**
|
||||
* the bit stream.
|
||||
*/
|
||||
class SrsBitStream
|
||||
{
|
||||
private:
|
||||
int8_t cb;
|
||||
u_int8_t cb_left;
|
||||
SrsStream* stream;
|
||||
public:
|
||||
SrsBitStream();
|
||||
virtual ~SrsBitStream();
|
||||
public:
|
||||
virtual int initialize(SrsStream* s);
|
||||
virtual bool empty();
|
||||
virtual int8_t read_bit();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue