Video is working!

This commit is contained in:
Florian Märkl 2019-06-10 17:59:58 +02:00
commit 6846d61fa2
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
6 changed files with 93 additions and 8 deletions

View file

@ -155,7 +155,9 @@ CHIAKI_EXPORT ChiakiErrorCode chiaki_frame_processor_put_unit(ChiakiFrameProcess
}
unit->data_size = packet->data_size;
memcpy(frame_processor->frame_buf + packet->unit_index, packet->data, packet->data_size);
memcpy(frame_processor->frame_buf + packet->unit_index * frame_processor->buf_size_per_unit,
packet->data,
packet->data_size);
if(packet->unit_index < frame_processor->units_regular_expected)
frame_processor->units_regular_received++;

View file

@ -783,9 +783,9 @@ CHIAKI_EXPORT ChiakiErrorCode chiaki_takion_av_packet_parse(ChiakiTakionAVPacket
if(packet->is_video)
{
packet->word_at_0x18 = ntohs(*((uint16_t *)(av + 0)));
packet->adaptive_stream_index = av[2] >> 5;
av += 3;
av_size -= 3;
packet->adaptive_stream_index = av[1] >> 5;
av += 2;
av_size -= 2;
}
// TODO: parsing for uses_nalu_info_structs (before: packet.byte_at_0x1a)
@ -793,8 +793,8 @@ CHIAKI_EXPORT ChiakiErrorCode chiaki_takion_av_packet_parse(ChiakiTakionAVPacket
if(packet->is_video)
{
packet->byte_at_0x2c = av[0];
av += 2;
av_size -= 2;
//av += 2;
//av_size -= 2;
}
packet->data = av;