From 1fddbcb7c66ff3c2202d32f245c63d7e829b2578 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 3 Jul 2026 13:09:27 -0500 Subject: [PATCH] Don't leak rswrapper into our headers --- src/RtpAudioQueue.c | 9 +++++++++ src/RtpAudioQueue.h | 9 +-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/RtpAudioQueue.c b/src/RtpAudioQueue.c index 9828d88..004e572 100644 --- a/src/RtpAudioQueue.c +++ b/src/RtpAudioQueue.c @@ -1,5 +1,14 @@ #include "Limelight-internal.h" +#include "rswrapper.h" + +typedef struct _reed_solomon { + int ds; + int ps; + int ts; + uint8_t p[]; +} reed_solomon; + #if defined(LC_DEBUG) && !defined(LC_FUZZING) // This enables FEC validation mode with a synthetic drop // and recovered packet checks vs the original input. It diff --git a/src/RtpAudioQueue.h b/src/RtpAudioQueue.h index 8f377aa..2a73ab2 100644 --- a/src/RtpAudioQueue.h +++ b/src/RtpAudioQueue.h @@ -2,14 +2,7 @@ #include "Video.h" -#include "rswrapper.h" - -typedef struct _reed_solomon { - int ds; - int ps; - int ts; - uint8_t p[]; -} reed_solomon; +typedef struct _reed_solomon reed_solomon; // Maximum time to wait for an OOS data/FEC shard // after the entire FEC block should have been received