[Mplayer-cvslog] CVS: main/libmpcodecs ad_libvorbis.c,1.10,1.11
Richard Felker CVS
rfelker at mplayerhq.hu
Mon Jan 13 20:18:56 CET 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv5317/libmpcodecs
Modified Files:
ad_libvorbis.c
Log Message:
1000l, this clips!! IMO rg_scale nonsense should be removed with
tremor anyway since people using tremor want max performance!
Index: ad_libvorbis.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_libvorbis.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ad_libvorbis.c 4 Dec 2002 20:50:53 -0000 1.10
+++ ad_libvorbis.c 13 Jan 2003 19:18:26 -0000 1.11
@@ -133,7 +133,7 @@
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 @@
#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++){
More information about the MPlayer-cvslog
mailing list