You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
dcaenc: small quantization simplification.
This commit is contained in:
@@ -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));
|
||||||
av_assert0(sample >= -(1 << (bits - 1)));
|
av_assert0(sample >= -(1 << (bits - 1)));
|
||||||
sample &= sample & ((1 << bits) - 1);
|
return sample & ((1 << bits) - 1);
|
||||||
return sample;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int find_scale_factor7(int64_t max_value, int bits)
|
static inline int find_scale_factor7(int64_t max_value, int bits)
|
||||||
|
Reference in New Issue
Block a user