Loading media/libmediaplayerservice/nuplayer/NuPlayer.cpp +14 −15 Original line number Diff line number Diff line Loading @@ -2079,14 +2079,12 @@ void NuPlayer::updateVideoSize( int32_t displayWidth, displayHeight; if (outputFormat != NULL) { int32_t width, height; CHECK(outputFormat->findInt32("width", &width)); CHECK(outputFormat->findInt32("height", &height)); int32_t cropLeft, cropTop, cropRight, cropBottom; CHECK(outputFormat->findRect( int32_t width, height, cropLeft, cropTop, cropRight, cropBottom; if (outputFormat->findInt32("width", &width) && outputFormat->findInt32("height", &height) && outputFormat->findRect( "crop", &cropLeft, &cropTop, &cropRight, &cropBottom)); &cropLeft, &cropTop, &cropRight, &cropBottom)) { displayWidth = cropRight - cropLeft + 1; displayHeight = cropBottom - cropTop + 1; Loading @@ -2097,6 +2095,7 @@ void NuPlayer::updateVideoSize( displayWidth, displayHeight, cropLeft, cropTop); } } else { if (!inputFormat->findInt32("width", &displayWidth) || !inputFormat->findInt32("height", &displayHeight)) { Loading Loading
media/libmediaplayerservice/nuplayer/NuPlayer.cpp +14 −15 Original line number Diff line number Diff line Loading @@ -2079,14 +2079,12 @@ void NuPlayer::updateVideoSize( int32_t displayWidth, displayHeight; if (outputFormat != NULL) { int32_t width, height; CHECK(outputFormat->findInt32("width", &width)); CHECK(outputFormat->findInt32("height", &height)); int32_t cropLeft, cropTop, cropRight, cropBottom; CHECK(outputFormat->findRect( int32_t width, height, cropLeft, cropTop, cropRight, cropBottom; if (outputFormat->findInt32("width", &width) && outputFormat->findInt32("height", &height) && outputFormat->findRect( "crop", &cropLeft, &cropTop, &cropRight, &cropBottom)); &cropLeft, &cropTop, &cropRight, &cropBottom)) { displayWidth = cropRight - cropLeft + 1; displayHeight = cropBottom - cropTop + 1; Loading @@ -2097,6 +2095,7 @@ void NuPlayer::updateVideoSize( displayWidth, displayHeight, cropLeft, cropTop); } } else { if (!inputFormat->findInt32("width", &displayWidth) || !inputFormat->findInt32("height", &displayHeight)) { Loading