Ticket #1419: ticket_1419.patch
File ticket_1419.patch, 1.6 KB (added by Vadim, 9 years ago) |
---|
-
Lib/TLibCommon/TComPrediction.cpp
1101 1101 bReusedPrev = (Bool*)xMalloc(Bool, uiMaxPLTPredSize + 1); 1102 1102 memset(bPredicted, 0, sizeof(Bool)*(uiMaxPLTSize + 1)); 1103 1103 memset(bReusedPrev, 0, sizeof(Bool)*(uiMaxPLTPredSize + 1)); 1104 1105 #if FIX_PLT_REORDER 1106 Int uiNumPLTRceived = uiDictMaxSize; 1107 UInt uiNumPLTPredicted = 0; 1108 1109 for (uiIdxCurr = 0; uiIdxCurr < uiDictMaxSize; uiIdxCurr++) 1110 #else 1104 1111 UInt uiNumPLTRceived = uiDictMaxSize, uiNumPLTPredicted = 0; 1105 1112 for (uiIdxPrev = 0; uiIdxPrev < uiPLTSizePrev; uiIdxPrev++) 1113 #endif 1106 1114 { 1107 1115 bReused = false; 1108 1116 Int iCounter = 0; 1117 1118 #if FIX_PLT_REORDER 1119 for (uiIdxPrev = 0; uiIdxPrev < uiPLTSizePrev; uiIdxPrev++) 1120 #else 1109 1121 for (uiIdxCurr = 0; uiIdxCurr < uiDictMaxSize; uiIdxCurr++) 1122 #endif 1110 1123 { 1111 1124 iCounter = 0; 1112 1125 … … 1131 1144 uiNumPLTPredicted++; 1132 1145 } 1133 1146 } 1147 1148 #if FIX_PLT_REORDER 1149 assert( uiNumPLTRceived >= 0 ); 1150 assert( uiNumPLTPredicted <= uiDictMaxSize ); 1151 #endif 1152 1134 1153 for (uiIdxPrev = 0; uiIdxPrev < uiMaxPLTPredSize; uiIdxPrev++) 1135 1154 { 1136 1155 for (UInt comp = compBegin; comp < compBegin + uiNumComp; comp++) -
Lib/TLibCommon/TypeDef.h
45 45 #include <vector> 46 46 #include <cstdlib> 47 47 48 #define FIX_PLT_REORDER 1 49 48 50 //! \ingroup TLibCommon 49 51 //! \{ 50 52