diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-01 21:49:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-01 21:49:14 +0200 |
commit | f805d7be4c602a3c6ee017676125c0bd94e9adae (patch) | |
tree | ba00a632ad41c44759041d2ea0d8ec1691617ac5 | |
parent | 3be811a528461816063059377fcb2ac60eabfa77 (diff) | |
download | ffmpeg-f805d7be4c602a3c6ee017676125c0bd94e9adae.tar.gz |
avcodec/rangecoder: avoid float operation
Use integers, avoid potential rounding issues
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/rangecoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c index 29fb909668..e4c5763e4d 100644 --- a/libavcodec/rangecoder.c +++ b/libavcodec/rangecoder.c @@ -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)); |