1
0
mirror of https://github.com/danog/libtgvoip.git synced 2024-11-26 12:14:39 +01:00
This commit is contained in:
Daniil Gentili 2020-03-28 12:52:15 +01:00
parent 88602411c6
commit bb62971f5f
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 4 additions and 3 deletions

View File

@ -22,13 +22,14 @@ void AudioPacketSender::SendFrame(unsigned char *data, size_t len, unsigned char
if (controller->stopping)
return;
std::shared_ptr<Packet> pkt;
std::shared_ptr<Packet> pkt = std::make_shared<Packet>();
pkt->data = std::make_unique<Buffer>(len);
pkt->data->CopyFrom(data, 0, len);
std::shared_ptr<Buffer> secondaryPtr;
if (secondaryLen)
{
secondaryPtr = std::make_shared<Buffer>(secondaryLen);
secondaryPtr->CopyFrom(secondaryData, 0, secondaryLen);
}

View File

@ -31,8 +31,8 @@ struct AudioStreamInfo
{
virtual ~AudioStreamInfo() = default;
bool extraECEnabled;
uint16_t frameDuration;
bool extraECEnabled = false;
uint16_t frameDuration = 60;
};
struct VideoStreamInfo
{