Commit bde80559 authored by Clément Bœsch's avatar Clément Bœsch

dcaenc: small quantization simplification.

parent 47a8243c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment