commit | 23d3628628e4d3a89a41b6429a40745b304de8e2 | [log] [tgz] |
---|---|---|
author | Martin Storsjo <martin@martin.st> | Sun Feb 19 21:45:12 2012 +0200 |
committer | Martin Storsjo <martin@martin.st> | Sun Feb 19 21:47:50 2012 +0200 |
tree | fd28afa0f17d16515b2041ab547419078411b067 | |
parent | 44c1f012c4ffa75853a068963b212ee1c965b6ea [diff] |
stagefright aacenc: Avoid a division by zero In rare cases, the result of normFactor * (*psfbNActiveLines) could be zero, leading to a division by zero in pow2_xy. In these cases, normFactor was INT_MIN, and if *psfbNActiveLines was 2, the product was zero. normFactor being INT_MIN is a bug in itself though. Change-Id: Ib31bf02889615a7be3bd1bc028da8a7651a8dbee