[FFmpeg-cvslog] r22411 - trunk/libavcodec/aacsbr.c
alexc
subversion
Tue Mar 9 22:35:55 CET 2010
Author: alexc
Date: Tue Mar 9 22:35:55 2010
New Revision: 22411
Log:
aacsbr: Factor out the common end border case from t_q setup.
Modified:
trunk/libavcodec/aacsbr.c
Modified: trunk/libavcodec/aacsbr.c
==============================================================================
--- trunk/libavcodec/aacsbr.c Tue Mar 9 22:29:43 2010 (r22410)
+++ trunk/libavcodec/aacsbr.c Tue Mar 9 22:35:55 2010 (r22411)
@@ -721,6 +721,7 @@ static int read_sbr_grid(AACContext *ac,
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[ch_data->bs_num_noise] = ch_data->t_env[ch_data->bs_num_env];
if (ch_data->bs_num_noise > 1) {
unsigned int idx;
if (ch_data->bs_frame_class == FIXFIX) {
@@ -736,9 +737,7 @@ static int read_sbr_grid(AACContext *ac,
idx = bs_pointer - 1;
}
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[1] = -1;
More information about the ffmpeg-cvslog
mailing list