From ef8adca0fc9666999df9130ce98f7cae149697f8 Mon Sep 17 00:00:00 2001 From: pigeatgarlic <64737125+pigeatgarlic@users.noreply.github.com> Date: Fri, 14 Feb 2025 09:54:59 +0000 Subject: [PATCH] fix timestamp --- smemory.h | 4 ++-- src/main.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/smemory.h b/smemory.h index ae90928f..09c05f47 100644 --- a/smemory.h +++ b/smemory.h @@ -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; diff --git a/src/main.cpp b/src/main.cpp index 99727e01..16c542ec 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 {