1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-09-16 08:36:51 +02:00

Only read some of TNS bitstream data in the case that the TNS filter order is

non-zero as per the specification.

Patch by Alex Converse (alex converse gmail com)
Fixes another issue pertaining to issue632

Originally committed as revision 15303 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Converse
2008-09-12 14:32:49 +00:00
committed by Robert Swain
parent 0885770455
commit 5167364777

View File

@@ -629,6 +629,7 @@ static int decode_tns(AACContext * ac, TemporalNoiseShaping * tns,
tns->order[w][filt] = 0;
return -1;
}
if (tns->order[w][filt]) {
tns->direction[w][filt] = get_bits1(gb);
coef_compress = get_bits1(gb);
coef_len = coef_res + 3 - coef_compress;
@@ -639,6 +640,7 @@ static int decode_tns(AACContext * ac, TemporalNoiseShaping * tns,
}
}
}
}
return 0;
}