Showing the changes to test/decoder/DecUT_ErrorConcealment.cpp (1 of 1 file). Show all
Unified · Split
| @@ -47,8 +47,8 @@ int32_t InitAndAllocInputData (PECInputCtx& pECCtx) { · 46 unmodified lines | |||
| 47 | return 1; | 47 | return 1; |
| 48 | memset (pECCtx, 0, sizeof (SECInputCtx)); | 48 | memset (pECCtx, 0, sizeof (SECInputCtx)); |
| 49 | 49 | ||
| 50 | pECCtx->iMbWidth = rand() % MAX_MB_WIDTH; //give a constrained max width | 50 | pECCtx->iMbWidth = rand() % (MAX_MB_WIDTH - 1) + 1; //give a constrained max width |
| 51 | pECCtx->iMbHeight = rand() % MAX_MB_HEIGHT; //give a constrained max height | 51 | pECCtx->iMbHeight = rand() % (MAX_MB_HEIGHT - 1) + 1; //give a constrained max height |
| 52 | pECCtx->iLinesize[0] = pECCtx->iMbWidth << 4; | 52 | pECCtx->iLinesize[0] = pECCtx->iMbWidth << 4; |
| 53 | pECCtx->iLinesize[1] = pECCtx->iLinesize[2] = pECCtx->iLinesize[0] >> 1; | 53 | pECCtx->iLinesize[1] = pECCtx->iLinesize[2] = pECCtx->iLinesize[0] >> 1; |
| 54 | 54 | ||