diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-07 19:43:52 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-07 19:44:14 +0400 |
commit | 925bd174f20371dee37542291c77fee1ba3e155d (patch) | |
tree | f7ca216d7a124938be8cc05a946e16d6864b61b6 /libavcodec/ttaenc.c | |
parent | f2407407121f5439fc32b733c2ad9a2bd94e766a (diff) |
avcodec/tta: fix macro ()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ttaenc.c')
-rw-r--r-- | libavcodec/ttaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ttaenc.c b/libavcodec/ttaenc.c index 75d16642ea..ccd41a90c9 100644 --- a/libavcodec/ttaenc.c +++ b/libavcodec/ttaenc.c @@ -144,7 +144,7 @@ static int tta_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, } temp = value; -#define PRED(x, k) (int32_t)((((uint64_t)x << k) - x) >> k) +#define PRED(x, k) (int32_t)((((uint64_t)(x) << (k)) - (x)) >> (k)) switch (s->bps) { case 1: value -= PRED(c->predictor, 4); break; case 2: |