diff options
author | Robert Swain <robert.swain@gmail.com> | 2008-08-21 12:12:03 +0000 |
---|---|---|
committer | Robert Swain <robert.swain@gmail.com> | 2008-08-21 12:12:03 +0000 |
commit | fbd91d7cad28915dd7e6061b869b22171ca84101 (patch) | |
tree | 9cfc333d45d60030435bd3fb9bc90593a88a054d /libavcodec | |
parent | 1098e8d2369cbcf5c56f6be041ae2df88b99649b (diff) | |
download | ffmpeg-fbd91d7cad28915dd7e6061b869b22171ca84101.tar.gz |
Work around GCC variable may be used uninitialised warning
Originally committed as revision 14881 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/aac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/aac.c b/libavcodec/aac.c index 432edf062c..26d860adf6 100644 --- a/libavcodec/aac.c +++ b/libavcodec/aac.c @@ -615,9 +615,7 @@ static int decode_tns(AACContext * ac, TemporalNoiseShaping * tns, const int is8 = ics->window_sequence[0] == EIGHT_SHORT_SEQUENCE; const int tns_max_order = is8 ? 7 : ac->m4ac.object_type == AOT_AAC_MAIN ? 20 : 12; for (w = 0; w < ics->num_windows; w++) { - tns->n_filt[w] = get_bits(gb, 2 - is8); - - if (tns->n_filt[w]) + if ((tns->n_filt[w] = get_bits(gb, 2 - is8))) { coef_res = get_bits1(gb); for (filt = 0; filt < tns->n_filt[w]; filt++) { @@ -638,6 +636,7 @@ static int decode_tns(AACContext * ac, TemporalNoiseShaping * tns, for (i = 0; i < tns->order[w][filt]; i++) tns->coef[w][filt][i] = tns_tmp2_map[tmp2_idx][get_bits(gb, coef_len)]; } + } } return 0; } |