diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-02-18 20:42:19 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-02-18 20:42:19 +0400 |
commit | 69ee17f0b6121ab63f0a7712c9563295eda88d39 (patch) | |
tree | 2370cfeb47372a083e4531483974d825f276be5d /source/blender/imbuf/intern/indexer.c | |
parent | f059167c30c71cb241dfbf94ccff007a5b90e262 (diff) |
Wring scaling and precision error in previous commit.
Diffstat (limited to 'source/blender/imbuf/intern/indexer.c')
-rw-r--r-- | source/blender/imbuf/intern/indexer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/indexer.c b/source/blender/imbuf/intern/indexer.c index eb1bfc80383..ade63aa1e9c 100644 --- a/source/blender/imbuf/intern/indexer.c +++ b/source/blender/imbuf/intern/indexer.c @@ -517,7 +517,7 @@ static struct proxy_output_ctx * alloc_proxy_output_ffmpeg( /* there's no way to set JPEG quality in the same way as in AVI JPEG and image sequence, * but this seems to be giving expected quality result */ - ffmpeg_quality = 31 * (1.0f - (float)quality / 100.0f); + ffmpeg_quality = (int)(1.0f + 30.0f * (1.0f - (float)quality / 100.0f) + 0.5f); av_set_int(rv->c, "qmin", ffmpeg_quality); av_set_int(rv->c, "qmax", ffmpeg_quality); |