summaryrefslogtreecommitdiff
path: root/libavcodec/aacdec.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-01-23 02:22:34 +0000
committerMans Rullgard <mans@mansr.com>2011-01-23 16:41:04 +0000
commitf162e988aa0dc8df93079b5ebf452ec281ab8793 (patch)
treece33274d0df8f0e221a9029fe5b184a78c78c821 /libavcodec/aacdec.c
parent611a6f59ce91947b25033bb8d0f9311b5c542b05 (diff)
Remove redundant checks against MIN_CACHE_BITS
With the removal of the libmpeg2 bitstream reader, MIN_CACHE_BITS is always >= 25, so tests against smaller values can be removed. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r--libavcodec/aacdec.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index fa527da37c..e6d32f4a73 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -1062,9 +1062,6 @@ static int decode_spectrum_and_dequant(AACContext *ac, float coef[1024],
UPDATE_CACHE(re, gb);
GET_VLC(code, re, gb, vlc_tab, 8, 2);
-#if MIN_CACHE_BITS < 20
- UPDATE_CACHE(re, gb);
-#endif
cb_idx = cb_vector_idx[code];
nnz = cb_idx >> 8 & 15;
bits = SHOW_UBITS(re, gb, nnz) << (32-nnz);
@@ -1157,12 +1154,7 @@ static int decode_spectrum_and_dequant(AACContext *ac, float coef[1024],
return -1;
}
-#if MIN_CACHE_BITS < 21
- LAST_SKIP_BITS(re, gb, b + 1);
- UPDATE_CACHE(re, gb);
-#else
SKIP_BITS(re, gb, b + 1);
-#endif
b += 4;
n = (1 << b) + SHOW_UBITS(re, gb, b);
LAST_SKIP_BITS(re, gb, b);