diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-07-03 20:36:44 -0700 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-07-04 07:46:53 -0700 |
commit | c51838478cab37488883f49ce940c4a0f0b235ba (patch) | |
tree | 22ef8d3635de9ba1507ff05f723c50a848794ec1 /libavcodec/amrnbdata.h | |
parent | 723b266d7285776e5134a42503e468447940decb (diff) | |
download | ffmpeg-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/amrnbdata.h')
-rw-r--r-- | libavcodec/amrnbdata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/amrnbdata.h b/libavcodec/amrnbdata.h index 26ff7fb40e..c2e2f8a5e5 100644 --- a/libavcodec/amrnbdata.h +++ b/libavcodec/amrnbdata.h @@ -71,7 +71,7 @@ typedef struct { } AMRNBFrame; /** The index of a frame parameter */ -#define AMR_BIT(field) (offsetof(AMRNBFrame, field) >> 1) +#define AMR_BIT(field) (offsetof(AMRNBFrame, field)) /** The index of a subframe-specific parameter */ #define AMR_OF(frame_num, variable) AMR_BIT(subframe[frame_num].variable) |