diff options
author | Maximilian Seesslen <mes@seesslen.net> | 2013-01-04 16:56:00 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-01-14 20:47:27 +0200 |
commit | 055b37308080d1143b69a0dc488f63b2ea1d0043 (patch) | |
tree | 26a8b8e5239dd9ea66d9b0b8d11c02d6028c9401 | |
parent | 39403c6c1baf9035d376bf4d7d5b196a6006ce27 (diff) | |
download | ffmpeg-055b37308080d1143b69a0dc488f63b2ea1d0043.tar.gz |
libtheoraenc: fix granularity of video quality
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: Martin Storsjö <martin@martin.st>
-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 f20fabb8d6..3990692145 100644 --- a/libavcodec/libtheoraenc.c +++ b/libavcodec/libtheoraenc.c @@ -207,7 +207,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; |