Merge "AImageDecoder: return BAD_PARAMETER on null info" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ee8da6bdbf
@@ -506,7 +506,7 @@ int AImageDecoder_getFrameInfo(AImageDecoder* decoder,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int64_t AImageDecoderFrameInfo_getDuration(const AImageDecoderFrameInfo* info) {
|
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;
|
return toFrameInfo(info)->fDuration * 1'000'000;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user