From d16785eba83c022b7caf095e7b3e855eaf8c466f Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 27 Jul 2017 22:16:10 -0500 Subject: [PATCH] winport - fix avi segmenting (especially or exclusively when dumping with HD) --- desmume/src/frontend/windows/aviout.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/desmume/src/frontend/windows/aviout.cpp b/desmume/src/frontend/windows/aviout.cpp index 79bf92bf3..0b242c1f9 100644 --- a/desmume/src/frontend/windows/aviout.cpp +++ b/desmume/src/frontend/windows/aviout.cpp @@ -463,8 +463,11 @@ void DRV_AviVideoUpdate() avi_file->tBytes += avi_file->ByteBuffer; // segment / split AVI when it's almost 2 GB (2000MB, to be precise) - if(!(avi_file->video_frames % 60) && avi_file->tBytes > 2097152000) - AviNextSegment(); + //if(!(avi_file->video_frames % 60) && avi_file->tBytes > 2097152000) AviNextSegment(); + //NOPE: why does it have to break at 1 second? + //we need to support dumping HD stuff here; that means 100s of MBs per second + //let's roll this back a bit to 1800MB to give us a nice huge 256MB wiggle room, and get rid of the 1 second check + if(avi_file->tBytes > (1800*1024*1024)) AviNextSegment(); } bool AVI_IsRecording()