am 28ccb4f7
: Merge "Don\'t use size_t for variables that store uint32_t value"
* commit '28ccb4f7d9bbea65c8cb1807e332a46ef37bc619': 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