summaryrefslogtreecommitdiffstats
path: root/libavcodec/ttaenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-07 17:43:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-07 17:44:14 +0200
commit925bd174f20371dee37542291c77fee1ba3e155d (patch)
treef7ca216d7a124938be8cc05a946e16d6864b61b6 /libavcodec/ttaenc.c
parentf2407407121f5439fc32b733c2ad9a2bd94e766a (diff)
downloadffmpeg-streaming-925bd174f20371dee37542291c77fee1ba3e155d.zip
ffmpeg-streaming-925bd174f20371dee37542291c77fee1ba3e155d.tar.gz
avcodec/tta: fix macro ()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ttaenc.c')
-rw-r--r--libavcodec/ttaenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ttaenc.c b/libavcodec/ttaenc.c
index 75d1664..ccd41a9 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:
OpenPOWER on IntegriCloud