mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 18:57:07 -07:00
Video is working!
This commit is contained in:
parent
8876b591bc
commit
6846d61fa2
6 changed files with 93 additions and 8 deletions
|
@ -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++;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue