Mercurial > libavcodec.hg
changeset 10208:39285535090c libavcodec
aacenc: Don't make unnecessary compares to the escape value in tight loops.
author | alexc |
---|---|
date | Mon, 21 Sep 2009 03:41:08 +0000 |
parents | 658b2ca35e22 |
children | bc939146f2e1 |
files | aaccoder.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/aaccoder.c Mon Sep 21 03:01:57 2009 +0000 +++ b/aaccoder.c Mon Sep 21 03:41:08 2009 +0000 @@ -173,12 +173,12 @@ for (k = 0; k < dim; k++) { float t = fabsf(in[i+k]); float di; + if (vec[k] == 64.0f) { //FIXME: slow //do not code with escape sequence small values - if (vec[k] == 64.0f && t < 39.0f*IQ) { + if (t < 39.0f*IQ) { rd = INFINITY; break; } - if (vec[k] == 64.0f) { //FIXME: slow if (t >= CLIPPED_ESCAPE) { di = t - CLIPPED_ESCAPE; curbits += 21; @@ -288,12 +288,12 @@ for (k = 0; k < dim; k++) { float t = fabsf(in[i+k]); float di; + if (vec[k] == 64.0f) { //FIXME: slow //do not code with escape sequence small values - if (vec[k] == 64.0f && t < 39.0f*IQ) { + if (t < 39.0f*IQ) { rd = INFINITY; break; } - if (vec[k] == 64.0f) { //FIXME: slow if (t >= CLIPPED_ESCAPE) { di = t - CLIPPED_ESCAPE; curbits += 21;