Skip to content

Commit

Permalink
VCR: Loosen wrong frame check to allow movie extension in read-write …
Browse files Browse the repository at this point in the history
…mode
  • Loading branch information
Aurumaker72 committed Mar 10, 2024
1 parent 76fd95d commit a3a09e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/vcr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a3a09e1

Please sign in to comment.