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

Refactor kernel buffer

This commit is contained in:
winlin 2020-04-30 20:46:45 +08:00
parent d045ce5d74
commit 7b5fa0e391
2 changed files with 35 additions and 77 deletions

View file

@ -45,10 +45,10 @@ ISrsCodec::~ISrsCodec()
{
}
SrsBuffer::SrsBuffer(char* b, int nb_b)
SrsBuffer::SrsBuffer(char* b, int nn)
{
p = bytes = b;
nb_bytes = nb_b;
nb_bytes = nn;
// TODO: support both little and big endian.
srs_assert(srs_is_little_endian());