aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-03-07 11:06:20 -0800
committerJanne Grunau <janne-libav@jannau.net>2012-03-14 23:30:19 +0100
commitb5947324758ae2a99ebf910ad425fdde69b23935 (patch)
treec3018b7fa25470955c79ee46ebba93be339077d2
parentce15406e78fd213b420dae68c5015803d9716c51 (diff)
downloadffmpeg-b5947324758ae2a99ebf910ad425fdde69b23935.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. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
-rw-r--r--libavcodec/dca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index 1bd31c9ac4..70cf6044f8 100644
--- a/libavcodec/dca.c
+++ b/libavcodec/dca.c
@@ -644,7 +644,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);