mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue