Showing the changes to test/api/BaseDecoderTest.cpp (1 of 6 files). Show all
Unified · Split
| @@ -71,7 +71,7 @@ void BaseDecoderTest::TearDown() { · 70 unmodified lines | ||
| 71 | 71 | |
| 72 | 72 | |
| 73 | 73 | void BaseDecoderTest::DecodeFrame(const uint8_t* src, int sliceSize, Callback* cbk) { |
| 74 | − void* data[3]; | |
| 74 | + uint8_t* data[3]; | |
| 75 | 75 | SBufferInfo bufInfo; |
| 76 | 76 | memset(data, 0, sizeof(data)); |
| 77 | 77 | memset(&bufInfo, 0, sizeof(SBufferInfo)); |
| @@ -82,19 +82,19 @@ void BaseDecoderTest::DecodeFrame(const uint8_t* src, int sliceSize, Callback* c · 4 unmodified lines | ||
| 82 | 82 | if (bufInfo.iBufferStatus == 1 && cbk != NULL) { |
| 83 | 83 | const Frame frame = { |
| 84 | 84 | { // y plane |
| 85 | − static_cast<uint8_t*>(data[0]), | |
| 85 | + data[0], | |
| 86 | 86 | bufInfo.UsrData.sSystemBuffer.iWidth, |
| 87 | 87 | bufInfo.UsrData.sSystemBuffer.iHeight, |
| 88 | 88 | bufInfo.UsrData.sSystemBuffer.iStride[0] |
| 89 | 89 | }, |
| 90 | 90 | { // u plane |
| 91 | − static_cast<uint8_t*>(data[1]), | |
| 91 | + data[1], | |
| 92 | 92 | bufInfo.UsrData.sSystemBuffer.iWidth / 2, |
| 93 | 93 | bufInfo.UsrData.sSystemBuffer.iHeight / 2, |
| 94 | 94 | bufInfo.UsrData.sSystemBuffer.iStride[1] |
| 95 | 95 | }, |
| 96 | 96 | { // v plane |
| 97 | − static_cast<uint8_t*>(data[2]), | |
| 97 | + data[2], | |
| 98 | 98 | bufInfo.UsrData.sSystemBuffer.iWidth / 2, |
| 99 | 99 | bufInfo.UsrData.sSystemBuffer.iHeight / 2, |
| 100 | 100 | bufInfo.UsrData.sSystemBuffer.iStride[1] |