Remove unused variables and an impossible condition
Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all
Unified · Split
| @@ -282,9 +282,6 @@ void EncodeDecodeTestAPI::ValidateParamExtCombination() { · 281 unmodified lines | ||
| 282 | 282 | //IntraPeriod |
| 283 | 283 | uiGOPSize = 1 << (param_.iTemporalLayerNum - 1); |
| 284 | 284 | param_.uiIntraPeriod -= param_.uiIntraPeriod % uiGOPSize; |
| 285 | − if (param_.uiIntraPeriod < 0) { | |
| 286 | − param_.uiIntraPeriod = 0; | |
| 287 | − } | |
| 288 | 285 | |
| 289 | 286 | //RefNum |
| 290 | 287 | int32_t iRefUpperBound = (param_.iUsageType == CAMERA_VIDEO_REAL_TIME) ? |
| @@ -412,11 +409,8 @@ void EncodeDecodeTestAPI::SliceParamValidationForMode2 (int iSpatialIdx) { · 121 unmodified lines | ||
| 412 | 409 | } |
| 413 | 410 | void EncodeDecodeTestAPI::SliceParamValidationForMode3 (int iSpatialIdx) { |
| 414 | 411 | |
| 415 | − unsigned int uiMbWidth = 0; | |
| 416 | 412 | unsigned int uiMbHeight = 0; |
| 417 | − unsigned int uiMbNumInFrame = 0; | |
| 418 | 413 | |
| 419 | − uiMbWidth = (param_.iPicWidth + 15) >> 4; | |
| 420 | 414 | uiMbHeight = (param_.iPicHeight + 15) >> 4; |
| 421 | 415 | |
| 422 | 416 | //change slice mode to SM_SINGLE_SLICE |