DO NOT MERGE - libstagefright: check requested memory size before allocation for SoftMPEG4Encoder and SoftVPXEncoder. am: 0462975291 am: 3e8e134597  -s ours am: e4223a8d32 am: bed81d6594 am: dd4576b017  -s ours am: e3bbe235f6
am: b7e63bfadb

* commit 'b7e63bfadbd83396f68e7b99ee3b6e67f646bf58':
  DO NOT MERGE - libstagefright: check requested memory size before allocation for SoftMPEG4Encoder and SoftVPXEncoder.