Browse Source

Revert "wavpack: Clip samples after shifting"

This reverts commit 8d055e9079.

The original commit introduced ticket #871, do not import the problem
into the release branch.
tags/n0.9.1
Carl Eugen Hoyos 14 years ago
parent
commit
9f561ec398
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/wavpack.c

+ 2
- 2
libavcodec/wavpack.c View File

@@ -405,12 +405,12 @@ static inline int wv_get_value_integer(WavpackFrameContext *s, uint32_t *crc, in
}

bit = (S & s->and) | s->or;
bit = (((S + bit) << s->shift) - bit) << s->post_shift;
bit = (((S + bit) << s->shift) - bit);

if(s->hybrid)
bit = av_clip(bit, -s->hybrid_maxclip - 1, s->hybrid_maxclip);

return bit;
return bit << s->post_shift;
}

static float wv_get_value_float(WavpackFrameContext *s, uint32_t *crc, int S)


Loading…
Cancel
Save