Skip to content

Commit 93d0089

Browse files
committed
ps_ptr pt16
1 parent 1456339 commit 93d0089

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/vorbis_decoder/vorbis_decoder.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,10 +1784,10 @@ int32_t mapping_inverse(vorbis_info_mapping_t *info) {
17841784
int32_t i, j;
17851785
int32_t n = s_blocksizes[s_dsp_state->W];
17861786

1787-
int32_t **pcmbundle = (int32_t **)alloca(sizeof(*pcmbundle) * s_vorbisChannels);
1788-
int32_t *zerobundle = (int32_t *)alloca(sizeof(*zerobundle) * s_vorbisChannels);
1789-
int32_t *nonzero = (int32_t *)alloca(sizeof(*nonzero) * s_vorbisChannels);
1790-
int32_t **floormemo = (int32_t **)alloca(sizeof(*floormemo) * s_vorbisChannels);
1787+
ps_ptr<int32_t*> pcmbundle; pcmbundle.alloc(sizeof(int32_t*) * s_vorbisChannels);
1788+
ps_ptr<int32_t> zerobundle; zerobundle.alloc(sizeof(int32_t) * s_vorbisChannels);
1789+
ps_ptr<int32_t> nonzero; nonzero.alloc(sizeof(int32_t) * s_vorbisChannels);
1790+
ps_ptr<int32_t*>floormemo; floormemo.alloc(sizeof(int32_t*) * s_vorbisChannels);
17911791

17921792
/* recover the spectral envelope; store it in the PCM vector for now */
17931793
for(i = 0; i < s_vorbisChannels; i++) {
@@ -1835,7 +1835,7 @@ int32_t mapping_inverse(vorbis_info_mapping_t *info) {
18351835
}
18361836
}
18371837

1838-
res_inverse(s_residue_param.get() + info->submaplist[i].residue, pcmbundle, zerobundle, ch_in_bundle);
1838+
res_inverse(s_residue_param.get() + info->submaplist[i].residue, pcmbundle.get(), zerobundle.get(), ch_in_bundle);
18391839
}
18401840

18411841
// for(j=0;j<vi->channels;j++)

0 commit comments

Comments
 (0)