ref: f42c9fae422b062f87fb38223f7f1e3c658d7c8d
parent: a37f1abe5e64a407857df87b8909ab46d5c074d9
parent: fd45e7ff155cdd0a26d792a699c533e23ebb2ad0
author: sijchen <sijchen@cisco.com>
date: Tue Nov 11 09:52:28 EST 2014
Merge pull request #1518 from huili2/ec_UT_0_bugfix EC UT fail bug fix
--- a/test/decoder/DecUT_ErrorConcealment.cpp
+++ b/test/decoder/DecUT_ErrorConcealment.cpp
@@ -47,8 +47,8 @@
return 1;
memset (pECCtx, 0, sizeof (SECInputCtx));
- pECCtx->iMbWidth = rand() % MAX_MB_WIDTH; //give a constrained max width
- pECCtx->iMbHeight = rand() % MAX_MB_HEIGHT; //give a constrained max height
+ pECCtx->iMbWidth = rand() % (MAX_MB_WIDTH - 1) + 1; //give a constrained max width
+ pECCtx->iMbHeight = rand() % (MAX_MB_HEIGHT - 1) + 1; //give a constrained max height
pECCtx->iLinesize[0] = pECCtx->iMbWidth << 4;
pECCtx->iLinesize[1] = pECCtx->iLinesize[2] = pECCtx->iLinesize[0] >> 1;