diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-07-27 09:44:57 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-07-27 09:44:57 +0000 |
commit | e071139a9664fda76177a27578aed677ca6fb71a (patch) | |
tree | c24dfc48eeb112ca61a5bf62aedcffc2bf79765a /libavcodec | |
parent | c5c3a926740e467243fa6730452acc7a97a32436 (diff) | |
download | ffmpeg-streaming-e071139a9664fda76177a27578aed677ca6fb71a.zip ffmpeg-streaming-e071139a9664fda76177a27578aed677ca6fb71a.tar.gz |
log2() & bsd
Originally committed as revision 3350 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/snow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c index 0f1ebb0..744d554 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -2422,7 +2422,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, s->keyframe=avctx->gop_size==0 || avctx->frame_number % avctx->gop_size == 0; pict->pict_type= s->keyframe ? FF_I_TYPE : FF_P_TYPE; - s->qlog= rint(QROOT*log2(pict->quality / (float)FF_QP2LAMBDA)); + s->qlog= rint(QROOT*log(pict->quality / (float)FF_QP2LAMBDA)/log(2)); //<64 >60 s->qlog += 61; |