From 499a682e5c3db8760ac20517d40ebfa0a2e80616 Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Wed, 17 Dec 2025 22:06:28 -0800 Subject: [PATCH] GetARStartTime matching --- src/DETHRACE/common/piping.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/DETHRACE/common/piping.c b/src/DETHRACE/common/piping.c index bad1a0ba..ea91b72c 100644 --- a/src/DETHRACE/common/piping.c +++ b/src/DETHRACE/common/piping.c @@ -2419,10 +2419,12 @@ tU32 GetARStartTime(void) { tU8* temp_ptr; temp_ptr = gPipe_buffer_oldest; - do { + while (1) { if (MoveSessionPointerForwardOne(&temp_ptr)) { return 0; } - } while (((tPipe_session*)temp_ptr)->chunk_type != ePipe_chunk_frame_boundary); - return ((tPipe_session*)temp_ptr)->chunks.chunk_data.frame_boundary_data.time; + if (((tPipe_session*)temp_ptr)->chunk_type == ePipe_chunk_frame_boundary) { + return ((tPipe_session*)temp_ptr)->chunks.chunk_data.frame_boundary_data.time; + } + } }