Showing the changes to test/api/encode_decode_api_test.cpp (1 of 14 files). Show all
Unified · Split
| @@ -101,9 +101,8 @@ void EncodeDecodeTestAPIBase::EncDecOneFrame (const int iWidth, const int iHeigh · 100 unmodified lines | |||
| 101 | //call decoder | 101 | //call decoder |
| 102 | unsigned char* pData[3] = { NULL }; | 102 | unsigned char* pData[3] = { NULL }; |
| 103 | memset (&dstBufInfo_, 0, sizeof (SBufferInfo)); | 103 | memset (&dstBufInfo_, 0, sizeof (SBufferInfo)); |
| 104 | rv = decoder_->DecodeFrame2 (info.sLayerInfo[0].pBsBuf, iLen, pData, &dstBufInfo_); | 104 | rv = decoder_->DecodeFrameNoDelay (info.sLayerInfo[0].pBsBuf, iLen, pData, &dstBufInfo_); |
| 105 | EXPECT_TRUE (rv == cmResultSuccess) << " rv = " << rv << " iFrameIdx = " << iFrame; | 105 | EXPECT_TRUE (rv == cmResultSuccess) << " rv = " << rv << " iFrameIdx = " << iFrame; |
| 106 | |||
| 107 | if (NULL != pfEnc) { | 106 | if (NULL != pfEnc) { |
| 108 | fwrite (info.sLayerInfo[0].pBsBuf, iLen, 1, pfEnc); | 107 | fwrite (info.sLayerInfo[0].pBsBuf, iLen, 1, pfEnc); |
| 109 | } | 108 | } |