This function contains a lot of platform specific constants whose use is unknown.
Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1541,24 +1541,6 @@ void_t WelsDecodeAccessUnitEnd (PWelsDecoderContext pCtx) { · 1540 unmodified lines | ||
| 1541 | 1541 | } |
| 1542 | 1542 | |
| 1543 | 1543 | |
| 1544 | −int32_t CheckBSBound (int32_t iWidth, int32_t iHeight, int32_t sliceNum, int32_t ppsId) { | |
| 1545 | − int32_t iRet = 0; | |
| 1546 | − | |
| 1547 | −#if defined(_WIN32) | |
| 1548 | − iRet = ((iWidth == 80) && (iHeight = 45) && (sliceNum < 60)); | |
| 1549 | − | |
| 1550 | −#elif defined(MACOS) | |
| 1551 | − iRet = ((iWidth == 80) && (iHeight = 45) && (ppsId < 57)); | |
| 1552 | − | |
| 1553 | −#elif defined(ANDROID) | |
| 1554 | − iRet = ((iWidth == 40) && (iHeight = 22)); | |
| 1555 | − | |
| 1556 | −#endif | |
| 1557 | − | |
| 1558 | − return iRet; | |
| 1559 | − | |
| 1560 | −} | |
| 1561 | − | |
| 1562 | 1544 | |
| 1563 | 1545 | |
| 1564 | 1546 | /* |