mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/rangecoder: avoid float operation
Use integers, avoid potential rounding issues Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3be811a528
commit
f805d7be4c
@ -133,7 +133,7 @@ int main(void)
|
||||
av_lfg_init(&prng, 1);
|
||||
|
||||
ff_init_range_encoder(&c, b, SIZE);
|
||||
ff_build_rac_states(&c, 0.05 * (1LL << 32), 128 + 64 + 32 + 16);
|
||||
ff_build_rac_states(&c, (1LL << 32) / 20, 128 + 64 + 32 + 16);
|
||||
|
||||
memset(state, 128, sizeof(state));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user