Remove an impossible condition
uiIntraPeriod is unsigned, and thus can't ever be negative. The subtraction on the line above can't ever make the value wrap around either, since param_.uiIntraPeriod % uiGOPSize always is smaller than or equal to param_.uiIntraPeriod. Thus, the check never is necessary even if the value would be signed either. This fixes warnings when building with clang.
This commit is contained in:
parent
a625dc836d
commit
2907cb2875
@ -282,9 +282,6 @@ void EncodeDecodeTestAPI::ValidateParamExtCombination() {
|
||||
//IntraPeriod
|
||||
uiGOPSize = 1 << (param_.iTemporalLayerNum - 1);
|
||||
param_.uiIntraPeriod -= param_.uiIntraPeriod % uiGOPSize;
|
||||
if (param_.uiIntraPeriod < 0) {
|
||||
param_.uiIntraPeriod = 0;
|
||||
}
|
||||
|
||||
//RefNum
|
||||
int32_t iRefUpperBound = (param_.iUsageType == CAMERA_VIDEO_REAL_TIME) ?
|
||||
|
Loading…
Reference in New Issue
Block a user