aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/amr.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-07-03 20:36:44 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2012-07-04 07:46:53 -0700
commitc51838478cab37488883f49ce940c4a0f0b235ba (patch)
tree22ef8d3635de9ba1507ff05f723c50a848794ec1 /libavcodec/amr.h
parent723b266d7285776e5134a42503e468447940decb (diff)
downloadffmpeg-c51838478cab37488883f49ce940c4a0f0b235ba.tar.gz
amr: remove shift out of the AMR_BIT() macro.
MSVC doesn't like the offsetof(..) >> 1 construct, it interprets it as a non-literal, thus causing use of this in static tables to fail compilation.
Diffstat (limited to 'libavcodec/amr.h')
-rw-r--r--libavcodec/amr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/amr.h b/libavcodec/amr.h
index ae6e4d1490..9498d57a9b 100644
--- a/libavcodec/amr.h
+++ b/libavcodec/amr.h
@@ -61,7 +61,7 @@ static inline void ff_amr_bit_reorder(uint16_t *out, int size,
field <<= 1;
field |= data[bit >> 3] >> (bit & 7) & 1;
}
- out[field_offset] = field;
+ out[field_offset >> 1] = field;
}
}