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,
|
fields.createConfigMethod,
|
||||||
SkBitmap::kRGB_565_Config);
|
SkBitmap::kRGB_565_Config);
|
||||||
|
|
||||||
size_t width, height;
|
uint32_t width, height;
|
||||||
bool swapWidthAndHeight = false;
|
bool swapWidthAndHeight = false;
|
||||||
if (videoFrame->mRotationAngle == 90 || videoFrame->mRotationAngle == 270) {
|
if (videoFrame->mRotationAngle == 90 || videoFrame->mRotationAngle == 270) {
|
||||||
width = videoFrame->mHeight;
|
width = videoFrame->mHeight;
|
||||||
@ -276,8 +276,8 @@ static jobject android_media_MediaMetadataRetriever_getFrameAtTime(JNIEnv *env,
|
|||||||
|
|
||||||
if (videoFrame->mDisplayWidth != videoFrame->mWidth ||
|
if (videoFrame->mDisplayWidth != videoFrame->mWidth ||
|
||||||
videoFrame->mDisplayHeight != videoFrame->mHeight) {
|
videoFrame->mDisplayHeight != videoFrame->mHeight) {
|
||||||
size_t displayWidth = videoFrame->mDisplayWidth;
|
uint32_t displayWidth = videoFrame->mDisplayWidth;
|
||||||
size_t displayHeight = videoFrame->mDisplayHeight;
|
uint32_t displayHeight = videoFrame->mDisplayHeight;
|
||||||
if (swapWidthAndHeight) {
|
if (swapWidthAndHeight) {
|
||||||
displayWidth = videoFrame->mDisplayHeight;
|
displayWidth = videoFrame->mDisplayHeight;
|
||||||
displayHeight = videoFrame->mDisplayWidth;
|
displayHeight = videoFrame->mDisplayWidth;
|
||||||
|
Reference in New Issue
Block a user