mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
aaccoder: use put_sbits()
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
e623e8cbb0
commit
6863249b34
@ -210,7 +210,7 @@ static av_always_inline float quantize_and_encode_band_cost_template(
|
|||||||
int len = av_log2(coef);
|
int len = av_log2(coef);
|
||||||
|
|
||||||
put_bits(pb, len - 4 + 1, (1 << (len - 4 + 1)) - 2);
|
put_bits(pb, len - 4 + 1, (1 << (len - 4 + 1)) - 2);
|
||||||
put_bits(pb, len, coef & ((1 << len) - 1));
|
put_sbits(pb, len, coef);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user