1
0
Fork 0
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:
winlin 2015-04-03 23:17:50 +08:00
parent 7e1749e029
commit 70c59da1bf
9 changed files with 351 additions and 8 deletions

View file

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