History

EC UT fail bug fix

huili2 committed 12 years ago

Commit fd45e7f1 parent 24823621 file · +2 −2Browse files

Showing the changes to test/decoder/DecUT_ErrorConcealment.cpp (1 of 1 file). Show all

Unified · Split

test/decoder/DecUT_ErrorConcealment.cpp+2−2
@@ -47,8 +47,8 @@ int32_t InitAndAllocInputData (PECInputCtx& pECCtx) { · 46 unmodified lines
4747 return 1;
4848 memset (pECCtx, 0, sizeof (SECInputCtx));
4949
50− pECCtx->iMbWidth = rand() % MAX_MB_WIDTH; //give a constrained max width
51− pECCtx->iMbHeight = rand() % MAX_MB_HEIGHT; //give a constrained max height
50+ pECCtx->iMbWidth = rand() % (MAX_MB_WIDTH - 1) + 1; //give a constrained max width
51+ pECCtx->iMbHeight = rand() % (MAX_MB_HEIGHT - 1) + 1; //give a constrained max height
5252 pECCtx->iLinesize[0] = pECCtx->iMbWidth << 4;
5353 pECCtx->iLinesize[1] = pECCtx->iLinesize[2] = pECCtx->iLinesize[0] >> 1;
5454

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t