Skip to content

Commit

Permalink
Update pyro header.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Feb 4, 2024
1 parent 64422e4 commit 6ada3dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions video/pyro_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ struct pyro_progress_report
{
uint64_t total_received_packets;
uint64_t total_recovered_packets;
uint64_t total_dropped_packets;
uint64_t total_dropped_video_packets;
uint64_t total_dropped_audio_packets;
uint64_t total_received_key_frames;
};

Expand Down Expand Up @@ -112,7 +113,7 @@ struct pyro_kick_state
pyro_kick_state_flags flags;
};

#define PYRO_MAX_UDP_DATAGRAM_SIZE (PYRO_MAX_PAYLOAD_SIZE + sizeof(struct pyro_codec_parameters))
#define PYRO_MAX_UDP_DATAGRAM_SIZE (PYRO_MAX_PAYLOAD_SIZE + sizeof(struct pyro_payload_header))

// TCP: Server to client
// UDP / TCP: client to server
Expand Down Expand Up @@ -212,7 +213,8 @@ struct pyro_payload_header
uint32_t pts_lo, pts_hi;
uint32_t dts_delta; // dts = pts - dts_delta
uint32_t payload_size;
uint16_t num_fec_blocks, num_xor_blocks;
uint16_t num_fec_blocks;
uint8_t num_xor_blocks_even, num_xor_blocks_odd;
pyro_payload_flags encoded;
};

Expand Down

0 comments on commit 6ada3dd

Please sign in to comment.