am 65842db0: Merge commit \'b46eb8d9\' into HEAD

* commit '65842db06c2d77e53cc5ac61692160d844cc7d0a':
  SoftAVCEnc: check requested memory size before allocation.