commit | 01e29ede19cd7d85bfef38896de8e71e569cd211 | [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 | fab8d4b927debeadc6e65e60e78f68bedd77af0f | |
parent | 013b73bfc4d5fb21082ccccf45fa08c18f86aa08 [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