Merge "AImageDecoder: return BAD_PARAMETER on null info" into sc-dev am: ee8da6bdbf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14411443 Change-Id: Ib502b50729f6a6d8c1fee453b306ac15d4f3d1ab
This commit is contained in:
@@ -506,7 +506,7 @@ int AImageDecoder_getFrameInfo(AImageDecoder* decoder,
|
||||
}
|
||||
|
||||
int64_t AImageDecoderFrameInfo_getDuration(const AImageDecoderFrameInfo* info) {
|
||||
if (!info) return 0;
|
||||
if (!info) return ANDROID_IMAGE_DECODER_BAD_PARAMETER;
|
||||
|
||||
return toFrameInfo(info)->fDuration * 1'000'000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user