zhengfl
Committed by winlin

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

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