Decoder: Handle ps_codec_obj memory allocation failure gracefully

If memory allocation for ps_codec_obj fails, return gracefully
with an error code. All other allocation failures are
handled correctly.

Bug: 68299873
Test: before/after with always-failing malloc
Change-Id: I5e6c07b147b13df81e65476851662d4b55d33b83
(cherry picked from commit a966e2a65dd901151ce7f4481d0084840c9a0f7e)
1 file changed
tree: bb14e547ae47374f2ce2ce432b460e6a7a3ae019
  1. Android.bp
  2. MODULE_LICENSE_APACHE2
  3. NOTICE
  4. OWNERS
  5. common/
  6. decoder/
  7. test/