summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2012-02-19 21:45:12 +0200
committerMartin Storsjo <martin@martin.st>2012-02-19 21:47:50 +0200
commit23d3628628e4d3a89a41b6429a40745b304de8e2 (patch)
treefd28afa0f17d16515b2041ab547419078411b067 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent44c1f012c4ffa75853a068963b212ee1c965b6ea (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
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions