dcaenc: small quantization simplification.

pull/2/head
Clément Bœsch 14 years ago
parent 47a8243c0d
commit bde8055963
  1. 3
      libavcodec/dcaenc.c

@ -365,8 +365,7 @@ static inline uint32_t quantize(int32_t sample, int bits)
{
av_assert0(sample < 1 << (bits - 1));
av_assert0(sample >= -(1 << (bits - 1)));
sample &= sample & ((1 << bits) - 1);
return sample;
return sample & ((1 << bits) - 1);
}
static inline int find_scale_factor7(int64_t max_value, int bits)

Loading…
Cancel
Save