On Sun, Aug 05, 2012 at 10:22:14PM +0100, Mans Rullgard wrote: > Signed-off-by: Mans Rullgard <[email protected]> > --- > libavcodec/imc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/imc.c b/libavcodec/imc.c > index 297efbb..92e9c8c 100644 > --- a/libavcodec/imc.c > +++ b/libavcodec/imc.c > @@ -416,7 +416,7 @@ static int bit_allocation(IMCContext *q, IMCChannel > *chctx, > highest = FFMAX(highest, chctx->flcoeffs1[i]); > > for (i = 0; i < BANDS - 1; i++) > - chctx->flcoeffs4[i] = chctx->flcoeffs3[i] - log(chctx->flcoeffs5[i]) > / log(2); > + chctx->flcoeffs4[i] = chctx->flcoeffs3[i] - > log2(chctx->flcoeffs5[i]); > chctx->flcoeffs4[BANDS - 1] = limit; > > highest = highest * 0.25;
Can't any of these be changed as well, or at least the one in the same file? % git grep 'log(.*log(2)' avconv.c: snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%X", (int)lrintf(log(qp_histogram[j] + 1) / log(2))); avprobe.c: index = (int) (log(val)/log(2)) / 10; libavcodec/imc.c: flcoeffs2[0] = log(flcoeffs1[0]) / log(2); libavcodec/imc.c: chctx->flcoeffs4[i] = chctx->flcoeffs3[i] - log(chctx->flcoeffs5[i]) / log(2); libavcodec/snowenc.c: return rint(QROOT*log(qscale / (float)FF_QP2LAMBDA)/log(2)) [...] -- Clément B.
pgpKaL65kiZwd.pgp
Description: PGP signature
_______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
