Commit 60518381 authored by alexc's avatar alexc

aacsbr: Make dk signed. There is no point in it being unsigned.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23671 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9406a5e2
...@@ -379,8 +379,7 @@ static int sbr_make_f_master(AACContext *ac, SpectralBandReplication *sbr, ...@@ -379,8 +379,7 @@ static int sbr_make_f_master(AACContext *ac, SpectralBandReplication *sbr,
} }
if (!spectrum->bs_freq_scale) { if (!spectrum->bs_freq_scale) {
unsigned int dk; int dk, k2diff;
int k2diff;
dk = spectrum->bs_alter_scale + 1; dk = spectrum->bs_alter_scale + 1;
sbr->n_master = ((sbr->k[2] - sbr->k[0] + (dk&2)) >> dk) << 1; sbr->n_master = ((sbr->k[2] - sbr->k[0] + (dk&2)) >> dk) << 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment