diff -urN source/Lib/CommonLib/TypeDef.h sourceNew/Lib/CommonLib/TypeDef.h
old
|
new
|
|
71 | 71 | |
72 | 72 | #endif |
73 | 73 | |
74 | | |
| 74 | #define FIX_BUG_ALF 1 |
75 | 75 | |
76 | 76 | #ifndef ENABLE_WPP_PARALLELISM |
77 | 77 | #define ENABLE_WPP_PARALLELISM 0 |
diff -urN source/Lib/EncoderLib/EncAdaptiveLoopFilter.cpp sourceNew/Lib/EncoderLib/EncAdaptiveLoopFilter.cpp
old
|
new
|
|
2153 | 2153 | } |
2154 | 2154 | } // if (weights(k)<=diff){ |
2155 | 2155 | } // for (k=0; k<sqrFiltLength; k++){ |
| 2156 | #if FIX_BUG_ALF |
| 2157 | if (minInd != -1) |
| 2158 | #endif |
2156 | 2159 | filterCoeffQuant[minInd]--; |
2157 | 2160 | } |
2158 | 2161 | else |
… |
… |
|
2180 | 2183 | } |
2181 | 2184 | } // if (weights(k)<=diff){ |
2182 | 2185 | } // for (k=0; k<sqrFiltLength; k++){ |
| 2186 | #if FIX_BUG_ALF |
| 2187 | if (minInd != -1) |
| 2188 | #endif |
2183 | 2189 | filterCoeffQuant[minInd]++; |
2184 | 2190 | } |
2185 | 2191 | |
… |
… |
|
2188 | 2194 | { |
2189 | 2195 | quantCoeffSum+=weights[i]*filterCoeffQuant[i]; |
2190 | 2196 | } |
| 2197 | #if FIX_BUG_ALF |
| 2198 | ++count; |
| 2199 | #endif |
2191 | 2200 | } |
2192 | 2201 | if( count == 10 ) |
2193 | 2202 | { |