From 5953aeed3116631a5c20c9953052b52d0c6708d6 Mon Sep 17 00:00:00 2001 From: Naka-Masa19 Date: Tue, 1 Dec 2026 11:01:27 +0900 Subject: [PATCH] Fix SRTCP packet handling in talkback receiver --- pyhap/camera_talkback.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyhap/camera_talkback.py b/pyhap/camera_talkback.py index a2f869d6..20c3373e 100644 --- a/pyhap/camera_talkback.py +++ b/pyhap/camera_talkback.py @@ -225,6 +225,14 @@ def _run(self) -> None: ) continue try: + if 192 <= data[1] <= 223: # RTCP packet + decrypted = self._session.unprotect_rtcp(data) + logger.debug( + "Received SRTCP: type=%d, length=%d", + decrypted[1], + len(decrypted), + ) + continue rtp_plain = self._session.unprotect(data) packet = parse_rtp_packet(rtp_plain) except Exception: