Skip to content

Commit

Permalink
Fix MixerInput overflow
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Duval <jerome.duval@gmail.com>
  • Loading branch information
juafromspace authored and korli committed Jan 18, 2013
1 parent d45cd46 commit 23bfcc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/add-ons/media/media-add-ons/mixer/MixerInput.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 23bfcc5

Please sign in to comment.