diff --git a/player.c b/player.c index bc569c338..2fe334ccc 100644 --- a/player.c +++ b/player.c @@ -400,7 +400,7 @@ static int stuff_buffer(double playback_rate, short *inptr, short *outptr) { if (rand() < p_stuff * RAND_MAX) { stuff = playback_rate > 1.0 ? -1 : 1; - stuffsamp = rand() % (frame_size - 1); + stuffsamp = 1 + (rand() % (frame_size - 2)); } pthread_mutex_lock(&vol_mutex);