Fixed a bug with the buffer from the last commit.
This commit is contained in:
@@ -1993,7 +1993,7 @@ static void raw_video_write_frame()
|
|||||||
temp = DSPBuffer[i];
|
temp = DSPBuffer[i];
|
||||||
if (temp > 32767) { temp = 32767; }
|
if (temp > 32767) { temp = 32767; }
|
||||||
else if (temp < -32768) { temp =-32768; }
|
else if (temp < -32768) { temp =-32768; }
|
||||||
fwrite2((short)temp, raw_vid.ap);
|
raw_vid.sample_buffer[raw_vid.sample_index] = temp;
|
||||||
|
|
||||||
raw_vid.sample_index++;
|
raw_vid.sample_index++;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user