From 9b78887eafa3afbcfd405027da02d95d95fd1c8d Mon Sep 17 00:00:00 2001 From: Grishka Date: Thu, 25 Apr 2019 04:57:50 +0300 Subject: [PATCH] more fixes --- PacketReassembler.cpp | 5 ++++- video/VideoPacketSender.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/PacketReassembler.cpp b/PacketReassembler.cpp index 5a328ac..09fc719 100644 --- a/PacketReassembler.cpp +++ b/PacketReassembler.cpp @@ -188,6 +188,7 @@ void PacketReassembler::Packet::AddFragment(Buffer pkt, uint32_t fragmentIndex){ parts.push_back(std::move(pkt)); //LOGV("add1"); }else if(parts.size()>fragmentIndex){ + assert(parts[fragmentIndex].IsEmpty()); parts[fragmentIndex]=std::move(pkt); //LOGV("add2"); }else{ @@ -197,7 +198,9 @@ void PacketReassembler::Packet::AddFragment(Buffer pkt, uint32_t fragmentIndex){ //LOGV("add3"); } receivedPartCount++; - assert(parts.size()>=receivedPartCount); + //assert(parts.size()>=receivedPartCount); + if(parts.size()10.0){ // TODO: probably move this to server config if(stm->codec==CODEC_AVC || stm->codec==CODEC_VP8){ if(currentVideoBitrate>400000){