avcodec/tta: fix macro ()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/76/merge
Michael Niedermayer 11 years ago
parent f240740712
commit 925bd174f2
  1. 2
      libavcodec/tta.c
  2. 2
      libavcodec/ttaenc.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:

@ -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:

Loading…
Cancel
Save