Dave Lane
b4ee1cea3d
Add MPEG-2 and H.263+ codec negotiation ( #175 )
2026-11-22 13:56:05 -06:00
Cameron Gutman
94c65fd364
Remove references to the deprecated Chrome client
2026-11-13 00:45:35 -06:00
TheElixZammuto
0d92c94664
Added Intra Refresh Support ( #97 )
2026-11-13 00:43:09 -06:00
Cameron Gutman
67996eca5d
Improve check for clock_gettime() and use it on Darwin
...
Also remove the CMake check which was broken anyway.
2026-11-13 00:34:21 -06:00
Cameron Gutman
30b928f6ae
Fix enet_socket_wait() with 0 timeout on 3DS
2026-11-13 00:02:56 -06:00
Cameron Gutman
a879f89736
Change sleep duration to unsigned
2026-11-12 23:50:55 -06:00
Cameron Gutman
98210be217
Remove separate __APPLE__ header section
2026-11-12 23:48:46 -06:00
Cameron Gutman
cf68e15ee3
Prevent overflow in Win32 PltGetMicroseconds()
2026-11-12 23:48:46 -06:00
Cameron Gutman
e6b1aaf0b8
Fix pollSockets() with timeout 0 on 3DS
2026-11-12 23:48:46 -06:00
Cameron Gutman
2804982d91
Fix PltSleepMs() handling of large sleep durations
2026-11-12 23:48:29 -06:00
Cameron Gutman
18922a1b32
Reject audio packets with no payload
...
It causes our Opus header validation to access uninitialized memory.
2026-11-12 22:29:27 -06:00
Cameron Gutman
2b45ee9f64
Fix PKCS7 padding for 16-byte aligned blocks
2026-11-12 22:28:14 -06:00
Cameron Gutman
a1aa0a1801
Change LiSendMultiControllerEvent number/mask arguments to unsigned
...
The modulo operator will not work as expected with negative numbers.
2026-11-12 22:10:28 -06:00
Cameron Gutman
f0df33caf8
Fix check for invalid motionType values
2026-11-12 22:04:20 -06:00
Cameron Gutman
dc09c9f2e8
Fix incorrect mask logic in isInSubnetV6
2026-11-12 22:02:24 -06:00
Cameron Gutman
0b4a44d19c
Fix missing global reinitialization when starting a new stream
2026-11-12 21:31:27 -06:00
Cameron Gutman
ae6633eedc
Keep RFI and IDR waits mutually exclusive
2026-11-12 21:22:23 -06:00
Cameron Gutman
e64327c864
Add a lock to fix races in the VideoDepacketizer
2026-11-12 21:19:09 -06:00
Cameron Gutman
a0262e78eb
Fix data race in LiGetEstimatedRttInfo
2026-11-12 20:03:52 -06:00
Cameron Gutman
d5b38a3ac6
Fix potentially missing ENet batching in mouse and UTF-8 cases
2026-11-11 15:39:14 -06:00
Cameron Gutman
541e396833
Redesign the RTP stats APIs to be race-free
...
We now accumulate the stats internally via atomic operations and copy
them into the caller's buffer when requested.
While we could expose the atomic fields in the public ABI, we want to
avoid this due to MSVC's C11 atomic implementation having no ABI
guarantees with the /experimental flag.
2026-11-11 15:22:31 -06:00
Cameron Gutman
08ebedb8aa
Correctly synchronize early calls to timing functions
2026-11-11 15:18:19 -06:00
Cameron Gutman
74a61b9f27
Synchronize HDR metadata updates
2026-11-11 14:44:50 -06:00
Cameron Gutman
274ec03d85
Don't rewrite constant fields of enqueued controller packets
...
Even though it's writing the same values, it's still a data race.
2026-11-11 14:09:46 -06:00
Cameron Gutman
eac4c469c7
Fix multi-waiter cases for Lbq and PLT_EVENT
...
We don't hit the broken cases today, but we could in the future.
2026-11-11 02:32:31 -06:00
Cameron Gutman
e44e4290ed
Use relaxed atomic for receivedDataFromPeer
2026-11-11 00:11:20 -06:00
Cameron Gutman
edb4e9e05f
Use atomics for initialized variable in input functions
2026-11-10 23:59:52 -06:00
Cameron Gutman
c3360b7102
Use atomics for thread cancellation
2026-11-10 23:34:03 -06:00
Cameron Gutman
7d884fadc3
Make active object counts debug-only and atomic
2026-11-10 23:17:05 -06:00
Cameron Gutman
7fd0f25967
Use atomic_int for LBQ currentSize
2026-11-10 23:02:43 -06:00
Cameron Gutman
b0deb0a265
Start adopting C11 atomics
2026-11-10 22:17:55 -06:00
Cameron Gutman
3b6ee9d916
Remove LiPeekNextVideoFrame API
...
Due to internal queue flushes outside of the app's control, this
API has fundamental UAF issues and is not possible to use safely.
2026-11-10 21:25:16 -06:00
Cameron Gutman
4aa7ea4e84
Fix double-close of audio socket in error paths
2026-11-10 21:07:26 -06:00
Cameron Gutman
348d5d1e32
Fix potential leaks on queue shutdown
2026-11-10 21:03:51 -06:00
Ulises Britos
bf71226754
fix(video): bound frame reassembly and reject missing SOF ( #169 )
2026-11-10 20:43:13 -06:00
Ulises Britos
a84a69a27e
fix(platform): synchronize POSIX event clearing with its mutex ( #172 )
2026-11-10 20:36:43 -06:00
Cameron Gutman
3387805deb
Consistently handle the frame index as 32-bit
2026-11-10 20:21:33 -06:00
fidoboy
e80a786afe
Handle ENet disconnects with short headers
2026-11-03 01:26:25 -06:00
Cameron Gutman
ee160c9193
Correctly parse padded STUN attributes
2026-11-03 01:23:49 -06:00
Cameron Gutman
2e18599b26
Validate the STUN message length field
2026-11-03 01:09:25 -06:00
Cameron Gutman
7bf16de8e2
Verify source addresses for STUN responses
2026-11-03 00:49:12 -06:00
Cameron Gutman
134eee49e0
Wait for a valid STUN response to stop sending
...
We previously would stop on any received message, including a STUN
binding error response or even a non-STUN garbage message.
2026-11-03 00:10:17 -06:00
Cameron Gutman
f462147ffd
Fix format string mismatch
2026-11-02 23:26:35 -06:00
Cameron Gutman
41d6c1db74
Fix unused parameter
2026-11-02 23:25:50 -06:00
Cameron Gutman
f050b13b6a
Add explicit cast to make MSVC happy
2026-11-01 15:11:58 -06:00
Cameron Gutman
7d61e2d95f
Don't provide ENet backpressure when sending large payloads
2026-11-01 15:07:59 -06:00
Cameron Gutman
4853e70489
Add jumbo control stream messages for larger than 16-bit payloads
2026-11-01 15:07:12 -06:00
Cameron Gutman
c7dff22963
Add replay detection to RTSP and control streams
...
Replays can do very little harm in these contexts, but let's detect and prevent them anyways.
Fixes #165
Closes #170
2026-11-01 14:07:45 -06:00
Sergey Shunko
5d3c0ecca0
Add missing IDX_DS_ADAPTIVE_TRIGGERS sentinel to packetTypesGen3..7
2026-10-26 17:46:48 -05:00
Chris
41cedb89d6
Only intercept ENet disconnects addressed to our peer ( #162 )
...
ignoreDisconnectIntercept() runs on every datagram the control stream
socket receives, before ENet has validated the packet. It only checked
the length and command, so any 12-byte DISCONNECT from any source set
disconnectPending, which tears down the session about a second later.
Check that the header's peer ID and session ID match our peer and that
the packet came from the peer's current address before acting on it.
Anything else is passed to ENet unchanged, so a genuine disconnect that
does not match (for example from another address of a multi-homed
host) is still handled, just without the grace period.
2026-10-24 18:16:28 -05:00