Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -220,7 +220,7 @@ TEST_F (EncoderInterfaceTest, EncoderOptionSetTest) { · 219 unmodified lines | ||
| 220 | 220 | sInfo.iLayer = SPATIAL_LAYER_0; |
| 221 | 221 | iResult = pPtrEnc->SetOption (eOptionId, &sInfo); |
| 222 | 222 | pPtrEnc->GetOption (ENCODER_OPTION_SVC_ENCODE_PARAM_EXT, pParamExt); |
| 223 | − if (sInfo.iBitrate <= 0) | |
| 223 | + if (sInfo.iBitrate <= 0 || pParamExt->sSpatialLayers[sInfo.iLayer].iSpatialBitrate <= (int) (fFrameRate + 0.5f)) | |
| 224 | 224 | EXPECT_EQ (iResult, static_cast<int> (cmInitParaError)); |
| 225 | 225 | else if (pParamExt->sSpatialLayers[sInfo.iLayer].iSpatialBitrate > |
| 226 | 226 | pParamExt->sSpatialLayers[sInfo.iLayer].iMaxSpatialBitrate) { |