diff options
author | Maximilian Seesslen <mes@seesslen.net> | 2013-01-04 19:56:00 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-04 21:46:24 +0400 |
commit | 467c033858a855c21b8378599923119e9414b72c (patch) | |
tree | 9e575706ffacab0a4d4c74fbb61768e7ca0bfd7c | |
parent | c98d3056cf0235340cf2918fc73151a6db5b4fb3 (diff) |
fixed granularity of video quality when encoding with theora codec
The floating point version of av_clip has to be used when converting the quality level.
Signed-off-by: Maximilian Seesslen <mes@seesslen.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/libtheoraenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c index 14197236b1..893370fb52 100644 --- a/libavcodec/libtheoraenc.c +++ b/libavcodec/libtheoraenc.c @@ -212,7 +212,7 @@ static av_cold int encode_init(AVCodecContext* avc_context) * 0 <= p <=63 * an int value */ - t_info.quality = av_clip(avc_context->global_quality / (float)FF_QP2LAMBDA, 0, 10) * 6.3; + t_info.quality = av_clipf(avc_context->global_quality / (float)FF_QP2LAMBDA, 0, 10) * 6.3; t_info.target_bitrate = 0; } else { t_info.target_bitrate = avc_context->bit_rate; |