projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
444ce49
)
Remove unneeded table lookup.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sun, 27 Sep 2009 06:16:49 +0000
(06:16 +0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Sun, 27 Sep 2009 06:16:49 +0000
(06:16 +0000)
Originally committed as revision 20050 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ac3.c
patch
|
blob
|
history
diff --git
a/libavcodec/ac3.c
b/libavcodec/ac3.c
index
72312c7
..
f0f14e3
100644
(file)
--- a/
libavcodec/ac3.c
+++ b/
libavcodec/ac3.c
@@
-228,7
+228,7
@@
void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
band = bin_to_band_tab[start];
do {
int m = (FFMAX(mask[band] - snr_offset - floor, 0) & 0x1FE0) + floor;
- int band_end = FFMIN(b
and_start_tab[band]
+ ff_ac3_critical_band_size_tab[band], end);
+ int band_end = FFMIN(b
in
+ ff_ac3_critical_band_size_tab[band], end);
for (; bin < band_end; bin++) {
int address = av_clip((psd[bin] - m) >> 5, 0, 63);
bap[bin] = bap_tab[address];