fix timestamp

This commit is contained in:
pigeatgarlic 2025-02-14 09:54:59 +00:00
parent 79804604bd
commit ef8adca0fc
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#define QUEUE_SIZE 16
#define PACKET_SIZE 5 * 1024 * 1024
#define QUEUE_SIZE 64
#define PACKET_SIZE 512 * 1024
typedef struct {
int active;

View File

@ -276,6 +276,7 @@ main(int argc, char *argv[]) {
memcpy(queue->incoming[updated].data + sizeof(uint32_t) + sizeof(uint32_t),ptr,size);
queue->incoming[updated].size = size + sizeof(uint32_t) + sizeof(uint32_t);
queue->inindex = updated;
last_timestamp = timestamp;
} while (video_packets->peek());
} else if (queue_type == QueueType::Audio) {
do {