aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-03-07 11:06:20 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2012-03-07 11:31:42 -0800
commit93b53ffb1abbe4aa7a922a830c8ae2e3ac098de3 (patch)
tree3b0e664bdfb018338ac5270641e578f0f04b166e
parent626964a4c4dbeff6d951c32f6e40dc5d96f75ea7 (diff)
downloadffmpeg-93b53ffb1abbe4aa7a922a830c8ae2e3ac098de3.tar.gz
dca: don't use av_clip_uintp2().
The argument is not a literal, thus causing the ARM v6 or later builds to break.
-rw-r--r--libavcodec/dca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index 6dbcda0ab6..8e4f819109 100644
--- a/libavcodec/dca.c
+++ b/libavcodec/dca.c
@@ -645,7 +645,7 @@ static inline int get_scale(GetBitContext *gb, int level, int value, int log2ran
if (level < 5) {
/* huffman encoded */
value += get_bitalloc(gb, &dca_scalefactor, level);
- value = av_clip_uintp2(value, log2range);
+ value = av_clip(value, 0, (1 << log2range) - 1);
} else if (level < 8) {
if (level + 1 > log2range) {
skip_bits(gb, level + 1 - log2range);