mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +08:00
解决可能存在的bug
This commit is contained in:
parent
5aa64c3651
commit
944ca18f92
@ -141,7 +141,8 @@ begin_decode:
|
|||||||
|
|
||||||
if(remain > 0){
|
if(remain > 0){
|
||||||
//剩余数据是下一个包,把它的数据放置在缓存中
|
//剩余数据是下一个包,把它的数据放置在缓存中
|
||||||
_remain_data.assign((char *)ptr,remain);
|
string str((char *)ptr,remain);
|
||||||
|
_remain_data = str;
|
||||||
|
|
||||||
data = ptr = (uint8_t *)_remain_data.data();
|
data = ptr = (uint8_t *)_remain_data.data();
|
||||||
len = _remain_data.size();
|
len = _remain_data.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user