am 214c3d9b
: am 6ac6263d
: am 28ccb4f7
: Merge "Don\'t use size_t for variables that store uint32_t value"
* commit '214c3d9b064c35437cfbab1ea3b82a7fb343ca6b': Don't use size_t for variables that store uint32_t value
This commit is contained in:
@ -245,7 +245,7 @@ static jobject android_media_MediaMetadataRetriever_getFrameAtTime(JNIEnv *env,
|
||||
fields.createConfigMethod,
|
||||
SkBitmap::kRGB_565_Config);
|
||||
|
||||
size_t width, height;
|
||||
uint32_t width, height;
|
||||
bool swapWidthAndHeight = false;
|
||||
if (videoFrame->mRotationAngle == 90 || videoFrame->mRotationAngle == 270) {
|
||||
width = videoFrame->mHeight;
|
||||
@ -276,8 +276,8 @@ static jobject android_media_MediaMetadataRetriever_getFrameAtTime(JNIEnv *env,
|
||||
|
||||
if (videoFrame->mDisplayWidth != videoFrame->mWidth ||
|
||||
videoFrame->mDisplayHeight != videoFrame->mHeight) {
|
||||
size_t displayWidth = videoFrame->mDisplayWidth;
|
||||
size_t displayHeight = videoFrame->mDisplayHeight;
|
||||
uint32_t displayWidth = videoFrame->mDisplayWidth;
|
||||
uint32_t displayHeight = videoFrame->mDisplayHeight;
|
||||
if (swapWidthAndHeight) {
|
||||
displayWidth = videoFrame->mDisplayHeight;
|
||||
displayHeight = videoFrame->mDisplayWidth;
|
||||
|
Reference in New Issue
Block a user