mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Fix OS-X compiler warning
rdo.c:475:25: warning: absolute value function 'abs' given an argument of type 'int64_t' (aka 'long long') but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] current.cost = -abs(quant_cost_in_bits) + (bits << PRECISION_INC); ^ rdo.c:475:25: note: use function 'llabs' instead current.cost = -abs(quant_cost_in_bits) + (bits << PRECISION_INC);
This commit is contained in:
parent
c7d536bbcd
commit
4ceda1908b
|
@ -472,7 +472,7 @@ void kvz_rdoq_sign_hiding(
|
|||
|
||||
// Add sign bit, other bits and sig_coeff goes to one.
|
||||
int bits = CTX_FRAC_ONE_BIT + sh_rates->inc[current.pos] + sh_rates->sig_coeff_inc[current.pos];
|
||||
current.cost = -abs(quant_cost_in_bits) + (bits << PRECISION_INC);
|
||||
current.cost = -llabs(quant_cost_in_bits) + (bits << PRECISION_INC);
|
||||
current.change = 1;
|
||||
|
||||
if (coeff_scan < first_nz_scan) {
|
||||
|
|
Loading…
Reference in a new issue