diff options
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index 19ee605f0..bceeb10b5 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -1172,9 +1172,9 @@ static hb_buffer_t * OutputAudioFrame( hb_audio_t *audio, hb_buffer_t *buf, sample = (double)*(((float*)buf->data)+ii); sample *= sync->gain_factor; if (sample > 0) - sample = MIN(sample, 32767.0); + sample = MIN(sample, 1.0); else - sample = MAX(sample, -32768.0); + sample = MAX(sample, -1.0); *(((float*)buf->data)+ii) = sample; } } |