Mercurial > libavcodec.hg
changeset 2146:b288cdc2ad68 libavcodec
log2() & bsd
author | michael |
---|---|
date | Tue, 27 Jul 2004 09:44:57 +0000 |
parents | 79a512d7a347 |
children | f980082baeaa |
files | snow.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/snow.c Tue Jul 27 02:52:16 2004 +0000 +++ b/snow.c Tue Jul 27 09:44:57 2004 +0000 @@ -2422,7 +2422,7 @@ 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;