Commit 1c17565e authored by alexc's avatar alexc

aacsbr: Factor out the common end border case from t_q setup.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22411 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c1ebd565
...@@ -721,6 +721,7 @@ static int read_sbr_grid(AACContext *ac, SpectralBandReplication *sbr, ...@@ -721,6 +721,7 @@ static int read_sbr_grid(AACContext *ac, SpectralBandReplication *sbr,
ch_data->bs_num_noise = (ch_data->bs_num_env > 1) + 1; ch_data->bs_num_noise = (ch_data->bs_num_env > 1) + 1;
ch_data->t_q[0] = ch_data->t_env[0]; ch_data->t_q[0] = ch_data->t_env[0];
ch_data->t_q[ch_data->bs_num_noise] = ch_data->t_env[ch_data->bs_num_env];
if (ch_data->bs_num_noise > 1) { if (ch_data->bs_num_noise > 1) {
unsigned int idx; unsigned int idx;
if (ch_data->bs_frame_class == FIXFIX) { if (ch_data->bs_frame_class == FIXFIX) {
...@@ -736,9 +737,7 @@ static int read_sbr_grid(AACContext *ac, SpectralBandReplication *sbr, ...@@ -736,9 +737,7 @@ static int read_sbr_grid(AACContext *ac, SpectralBandReplication *sbr,
idx = bs_pointer - 1; idx = bs_pointer - 1;
} }
ch_data->t_q[1] = ch_data->t_env[idx]; ch_data->t_q[1] = ch_data->t_env[idx];
ch_data->t_q[2] = ch_data->t_env[ch_data->bs_num_env]; }
} else
ch_data->t_q[1] = ch_data->t_env[ch_data->bs_num_env];
ch_data->e_a[0] = -(ch_data->e_a[1] != bs_num_env_old); // l_APrev ch_data->e_a[0] = -(ch_data->e_a[1] != bs_num_env_old); // l_APrev
ch_data->e_a[1] = -1; ch_data->e_a[1] = -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