I want to send an AVPacket though a QTcpSocket.write() I tried to cast the avpacket pointer to an char * but it only shows 8 bytes of the avpacket and without the avpacket.data.
here is my code
void DisplayStreamServer::sendDataToClient(AVPacket* packet) {
if (client == nullptr) {
return;
}
client->write((char*) packet);
client->waitForBytesWritten();
av_packet_unref(packet);
av_packet_free(&packet);
}
I can see that my packet.data has data inside it using the visual studio memory viewer. but it seems like when i convert the packet to char * the data is not included
--
