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

允许操作SrsStream中的函数时,长度为0.

This commit is contained in:
zhengfl 2015-11-05 13:47:30 +08:00 committed by winlin
parent 1dae8fc987
commit 38b81ce312

2
trunk/src/kernel/srs_kernel_stream.cpp Normal file → Executable file
View file

@ -87,7 +87,7 @@ bool SrsStream::empty()
bool SrsStream::require(int required_size)
{
srs_assert(required_size > 0);
srs_assert(required_size >= 0);
return required_size <= nb_bytes - (p - bytes);
}