FrameDecoder:Return error if dimension is missing

 Decoding non-8-bit or other non-YUV-420 vendor specific pixel
formats causes abort as stride is not present in such cases.
Malicious app can bring down media server by getting a thumbnail from
a 10-bit file.  Hence, if the stride is missing in the format, return
error message instead of aborting.
Handle missing height or width dimensions the same as above.

Bug: 192085013

Test: atest android.media.cts.MediaMetadataRetrieverTest
Change-Id: I3a0cf7d2ff60f378497a27aac43eb839f732fc5a
1 file changed