Commit bea1489f authored by michael's avatar michael

log2() & bsd


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3350 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9c0ba8c3
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment