Handle video track with invalid WxH to avoid mediaserver crash
Some specific files would cause mediaserver to crash if video
tracks lack height/width metadata. Add check to validate width/height
metadata and set them to 0 in case either of them are missing.
Test: Build is successful, atest CtsVideoTestCases, atest
mediacodecTest, atest CtsMediaMiscTestCases, atest
CtsMediaPlayerTestCases
Bug: 331454351
Change-Id: Ica635342ea4e68809084b9f7525ed79c61b370c9
Signed-off-by: Saurabh <sbbanore@amazon.com>
Loading
Please register or sign in to comment