From a3a09e138a6e06b318c0e6abe593832ea77e37ae Mon Sep 17 00:00:00 2001 From: Aurumaker72 Date: Sun, 10 Mar 2024 19:28:16 +0100 Subject: [PATCH] VCR: Loosen wrong frame check to allow movie extension in read-write mode --- main/vcr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/vcr.cpp b/main/vcr.cpp index deefa5c3..a7bfe022 100644 --- a/main/vcr.cpp +++ b/main/vcr.cpp @@ -464,7 +464,8 @@ int vcr_movie_unfreeze(const char* buf, const unsigned long size) if (movie_id != m_header.uid) return NOT_FROM_THIS_MOVIE; - if (current_sample > max_sample) + // This means playback desync in read-only mode, but in read-write mode it's fine, as the input buffer will be copied and grown from st. + if (current_sample > max_sample && Config.vcr_readonly) return INVALID_FRAME; if (space_needed > size)