diff options
author | Mike Smith <msmith@xiph.org> | 2001-03-21 07:44:46 +0000 |
---|---|---|
committer | Mike Smith <msmith@xiph.org> | 2001-03-21 07:44:46 +0000 |
commit | 14822824bf2a3dd44878b2854b1aa76e7c58847f (patch) | |
tree | 223119059eadcc93f55b25312f1b0a3b61e44111 /lib/psy.c | |
parent | 6e5675f78dce46eef7f570cef78eda661d7581c5 (diff) | |
download | libvorbis-git-14822824bf2a3dd44878b2854b1aa76e7c58847f.tar.gz |
allocation fix - sizeof(long) instead of sizeof(int) to fix problems
on 64 bit platforms.
Thanks to Bill Nottingham for tracking this one down.
svn path=/trunk/vorbis/; revision=1387
Diffstat (limited to 'lib/psy.c')
-rw-r--r-- | lib/psy.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,7 +11,7 @@ ******************************************************************** function: psychoacoustics not including preecho - last mod: $Id: psy.c,v 1.43 2001/02/26 03:50:42 xiphmont Exp $ + last mod: $Id: psy.c,v 1.44 2001/03/21 07:44:46 msmith Exp $ ********************************************************************/ @@ -191,7 +191,7 @@ void _vp_psy_init(vorbis_look_psy *p,vorbis_info_psy *vi,int n,long rate){ p->total_octave_lines=maxoc-p->firstoc+1; p->ath=_ogg_malloc(n*sizeof(float)); - p->octave=_ogg_malloc(n*sizeof(int)); + p->octave=_ogg_malloc(n*sizeof(long)); p->bark=_ogg_malloc(n*sizeof(float)); p->vi=vi; p->n=n; |