X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fdcaenc.c;h=eccff08c03e8f5bcc754555a0334e0d3e7af402a;hb=2dd2abe391ccf1b9140c6eea95767b5a8c503ddd;hp=2b61bec98cf0cf66084e140c04e1a1ee3d7aea86;hpb=173cd695cbb79a50a0738ce7bcc966cb40f4a28a;p=ffmpeg diff --git a/libavcodec/dcaenc.c b/libavcodec/dcaenc.c index 2b61bec98cf..eccff08c03e 100644 --- a/libavcodec/dcaenc.c +++ b/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)