diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-13 19:18:26 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-13 19:18:26 +0000 |
commit | bdd615bb79a3c558de01f47df2df1feb502ef915 (patch) | |
tree | b3c9da2656008e7a5288060bde00a3506239e349 /libmpcodecs | |
parent | 3cfcffb9762e67289dd2a97922f8b87890e6aa13 (diff) | |
download | mpv-bdd615bb79a3c558de01f47df2df1feb502ef915.tar.bz2 mpv-bdd615bb79a3c558de01f47df2df1feb502ef915.tar.xz |
1000l, this clips!! IMO rg_scale nonsense should be removed with
tremor anyway since people using tremor want max performance!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8947 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ad_libvorbis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/ad_libvorbis.c b/libmpcodecs/ad_libvorbis.c index 7004411204..7b128a34ba 100644 --- a/libmpcodecs/ad_libvorbis.c +++ b/libmpcodecs/ad_libvorbis.c @@ -133,7 +133,7 @@ static int init(sh_audio_t *sh) if(ov->rg_scale > 15.) ov->rg_scale = 15.; #ifdef TREMOR - ov->rg_scale_int = (int)(ov->rg_scale*128.f); + ov->rg_scale_int = (int)(ov->rg_scale*64.f); #endif mp_msg(MSGT_DECAUDIO,MSGL_V,"OggVorbis: Bitstream is %d channel%s, %dHz, %dbit/s %cBR\n",(int)ov->vi.channels,ov->vi.channels>1?"s":"",(int)ov->vi.rate,(int)ov->vi.bitrate_nominal, (ov->vi.bitrate_lower!=ov->vi.bitrate_nominal)||(ov->vi.bitrate_upper!=ov->vi.bitrate_nominal)?'V':'C'); @@ -212,7 +212,7 @@ static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen) #ifdef TREMOR ogg_int32_t *mono=pcm[i]; for(j=0;j<bout;j++){ - int val=(mono[j]*ov->rg_scale_int)>>(9+7); + int val=(mono[j]*ov->rg_scale_int)>>(9+6); #else float *mono=pcm[i]; for(j=0;j<bout;j++){ |