Fix MixerInput overflow
Signed-off-by: Jerome Duval <[email protected]>
This commit is contained in:
committed by
Jerome Duval
parent
d45cd469ef
commit
23bfcc5517
@@ -153,7 +153,7 @@ MixerInput::BufferReceived(BBuffer* buffer)
|
||||
start, offset);
|
||||
|
||||
int in_frames = size / bytes_per_frame(fInput.format.u.raw_audio);
|
||||
double frames = double(in_frames * fMixBufferFrameRate)
|
||||
double frames = ((double)in_frames * fMixBufferFrameRate)
|
||||
/ fInput.format.u.raw_audio.frame_rate;
|
||||
int out_frames = int(frames);
|
||||
fFractionalFrames += frames - double(out_frames);
|
||||
|
||||
Reference in New Issue
Block a user