Commit [0c0d9c]  Maximize  Restore  History

Make sure the average energy doesn't end up smaller than the minimum energy

Due to the inaccuracy of the fixed point calculations used, the
result of avgEn * (1 / ahCnt) could end up slightly below the
intended value since (1 / ahCnt) is rounded down (and not
calculated exactly). For a case of avgEn = 36 and ahCnt = 18,
the result was 0 even though it should have been 2.

Martin Storsjo Martin Storsjo 2014-04-30

changed aacenc
changed aacenc/src
changed aacenc/src/adj_thr.c
aacenc
Directory.
aacenc/src
Directory.
aacenc/src/adj_thr.c Diff Switch to side-by-side view
Loading...