WRS: fixed the regression that black/green pixels appear during video playback.

BZ: IMINAN-51351

The regression happened since Android O release, because
ACodec::configureCodec() is delayed to be invoked, so that the
eColorFormat of output port definition couldn't be aligned with
the updated video width & height.

Fixed the issue by updating eColorFormat when setParameter() is
triggered via libstagefright. And only update the eColorFormat
for the Intel YUV formats, as some CTS video cases go through
software renderer due to OMX_COLOR_FormatYUV420Flexible is pre-set.

Bug: 37551461

Test: Netflix, play movies, youtube

Change-Id: I4564e6f3bc49b9a029841d363e020a5a9c02b938
Signed-off-by: Austin Hu <austin.hu@intel.com>
(cherry picked from commit 05fba040651f2a9f853c1b17cd0e8e2e3b88c9f3)
2 files changed
tree: 0fffefb0bff87f710789554dbf32b396ee257596
  1. base/
  2. core/
  3. utils/
  4. .gitignore
  5. Android.mk
  6. AUTHORS
  7. ebuild.mk
  8. README