Merge "ultrahdr: update error checks in encode/decode path" into udc-dev am: e9c14ad6a7 am: ab46da8fc8 am: 0c01c98dc7

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23453077

Change-Id: Ib1d2a969454fe3086103cdf9bbad13d2fc5a0dfa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>