Commit f805d7be authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/rangecoder: avoid float operation

Use integers, avoid potential rounding issues
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3be811a5
...@@ -133,7 +133,7 @@ int main(void) ...@@ -133,7 +133,7 @@ int main(void)
av_lfg_init(&prng, 1); av_lfg_init(&prng, 1);
ff_init_range_encoder(&c, b, SIZE); 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)); memset(state, 128, sizeof(state));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment