Ticket #511: patch_for_ticket#511.patch
File patch_for_ticket#511.patch, 2.2 KB (added by suzukiyos, 11 years ago) |
---|
-
Lib/TLibCommon/TComSlice.cpp
103 103 , m_puiSubstreamSizes ( NULL ) 104 104 , m_cabacInitFlag ( false ) 105 105 , m_numEntryPointOffsets ( 0 ) 106 , m_bLMvdL1Zero ( false ) 106 107 #if !REFERENCE_PICTURE_DEFN 107 108 , m_nalRefFlag ( 0 ) 108 109 #endif … … 207 208 208 209 m_uiTileCount = 0; 209 210 m_cabacInitFlag = false; 211 m_bLMvdL1Zero = false; 210 212 m_numEntryPointOffsets = 0; 211 213 m_enableTMVPFlag = true; 212 214 #if DEPENDENT_SLICES -
Lib/TLibDecoder/TDecCAVLC.cpp
1248 1248 } 1249 1249 } 1250 1250 } 1251 READ_FLAG( uiCode, "mvd_l1_zero_flag" ); 1252 rpcSlice->setMvdL1ZeroFlag( (uiCode ? true : false) ); 1251 1253 } 1252 1254 else 1253 1255 { … … 1261 1263 sps = rpcSlice->getSPS(); 1262 1264 } 1263 1265 1264 if (rpcSlice->isInterB())1265 {1266 READ_FLAG( uiCode, "mvd_l1_zero_flag" ); rpcSlice->setMvdL1ZeroFlag( (uiCode ? true : false) );1267 }1268 1269 1266 rpcSlice->setCabacInitFlag( false ); // default 1270 1267 if(pps->getCabacInitPresentFlag() && !rpcSlice->isIntra()) 1271 1268 { -
Lib/TLibEncoder/TEncCavlc.cpp
609 609 WRITE_UVLC( pcSlice->getSliceType(), "slice_type" ); 610 610 Bool bDependentSlice = (!pcSlice->isNextSlice()); 611 611 WRITE_FLAG( bDependentSlice ? 1 : 0, "dependent_slice_flag" ); 612 612 613 613 #if DEPENDENT_SLICES 614 614 if( pcSlice->getPPS()->getDependentSlicesEnabledFlag() && bDependentSlice ) 615 615 return; … … 848 848 } 849 849 } 850 850 } 851 if (pcSlice->isInterB()) 852 { 853 WRITE_FLAG( pcSlice->getMvdL1ZeroFlag() ? 1 : 0, "mvd_l1_zero_flag"); 854 } 851 855 } 852 853 if (pcSlice->isInterB())854 {855 WRITE_FLAG( pcSlice->getMvdL1ZeroFlag() ? 1 : 0, "mvd_l1_zero_flag");856 }857 856 858 857 if(!pcSlice->isIntra()) 859 858 {