libhevcenc: reduce memory consumption
am: 40ed9a784a

Change-Id: I436c7d3a9b94b1b1c523b8ce99fb71682d822789