fixed /video writing incorrect audio stream lengths to the AVI file headers

This commit is contained in:
myT 2022-05-26 22:52:25 +02:00
parent 928a8df74a
commit 75f0635f3f
2 changed files with 3 additions and 1 deletions

View file

@ -60,6 +60,8 @@ chg: with r_backend GL3, depth fade with MSAA now requires GLSL 4.00 at a minimu
chg: with r_backend GL3, alpha to coverage now requires GLSL 4.00 at a minimum
fix: /video was writing incorrect audio stream lengths to the .avi file headers
fix: /systeminfo /serverinfo /clientinfo /dumpuser would crash when tokens were too long
fix: with r_lightmap 1 and r_dynamiclight 1, lighting transparent surfaces could crash

View file

@ -548,7 +548,7 @@ void CL_WriteAVIAudioFrame( const byte *pcmBuffer, int size )
afd.numAudioFrames++;
afd.moviSize += ( chunkSize + paddingSize );
afd.a.totalBytes =+ bytesInBuffer;
afd.a.totalBytes += bytesInBuffer;
// Index
bufIndex = 0;