Loading media/libmedia/MediaProfiles.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -514,16 +514,16 @@ void MediaProfiles::checkAndAddRequiredProfilesIfNecessary() { // Check high and low from either camcorder profile or timelapse profile // but not both. Default, check camcorder profile size_t j = 0; size_t n = 2; size_t o = 2; if (isTimelapseProfile(quality)) { // Check timelapse profile instead. j = 2; n = kNumRequiredProfiles; o = kNumRequiredProfiles; } else { // Must be camcorder profile. CHECK(isCamcorderProfile(quality)); } for (; j < n; ++j) { for (; j < o; ++j) { info = &(mRequiredProfileRefs[refIndex].mRefs[j]); if ((j % 2 == 0 && product > info->mResolutionProduct) || // low (j % 2 != 0 && product < info->mResolutionProduct)) { // high Loading Loading
media/libmedia/MediaProfiles.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -514,16 +514,16 @@ void MediaProfiles::checkAndAddRequiredProfilesIfNecessary() { // Check high and low from either camcorder profile or timelapse profile // but not both. Default, check camcorder profile size_t j = 0; size_t n = 2; size_t o = 2; if (isTimelapseProfile(quality)) { // Check timelapse profile instead. j = 2; n = kNumRequiredProfiles; o = kNumRequiredProfiles; } else { // Must be camcorder profile. CHECK(isCamcorderProfile(quality)); } for (; j < n; ++j) { for (; j < o; ++j) { info = &(mRequiredProfileRefs[refIndex].mRefs[j]); if ((j % 2 == 0 && product > info->mResolutionProduct) || // low (j % 2 != 0 && product < info->mResolutionProduct)) { // high Loading