ref: 94ffa1f51776e8ec5b035ca765aa6e1d928cecc4
parent: 456a6cf3a244cd79f211be7590e0b5b29e430319
parent: e762f96ace746125b36b492a247a6249ead0ee5b
author: sijchen <[email protected]>
date: Wed Jan 2 09:58:23 EST 2019
Merge pull request #3076 from xiaotiansf/GeneralFix Fix modified Colocated MB type for B frame decoding direct prediction…
--- a/codec/decoder/core/src/mv_pred.cpp
+++ b/codec/decoder/core/src/mv_pred.cpp
@@ -320,7 +320,10 @@
}
MbType coloc_mbType = colocPic->pMbType[iMbXy];
-
+ if (coloc_mbType == MB_TYPE_SKIP) {
+ //This indicates the colocated MB is P SKIP MB
+ coloc_mbType |= MB_TYPE_16x16 | MB_TYPE_P0L0 | MB_TYPE_P1L0;
+ }
if (IS_Inter_8x8 (coloc_mbType) && !pCtx->pSps->bDirect8x8InferenceFlag) {
subMbType = SUB_MB_TYPE_4x4 | MB_TYPE_P0L0 | MB_TYPE_P0L1 | MB_TYPE_DIRECT;
mbType |= MB_TYPE_8x8 | MB_TYPE_L0 | MB_TYPE_L1;