diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-07 17:43:52 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-07 17:44:14 +0200 |
commit | 925bd174f20371dee37542291c77fee1ba3e155d (patch) | |
tree | f7ca216d7a124938be8cc05a946e16d6864b61b6 /libavcodec/tta.c | |
parent | f2407407121f5439fc32b733c2ad9a2bd94e766a (diff) | |
download | ffmpeg-925bd174f20371dee37542291c77fee1ba3e155d.tar.gz |
avcodec/tta: fix macro ()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r-- | libavcodec/tta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c index 87bfe7b811..5fdbac8d44 100644 --- a/libavcodec/tta.c +++ b/libavcodec/tta.c @@ -312,7 +312,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data, filter->shift, filter->round); // fixed order prediction -#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: *p += PRED(*predictor, 4); break; case 2: |