- Timestamp:
- 12 Dec 2015, 03:55:59 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1501 r1509 182 182 for( Int layer = 0; layer < m_numLayers; layer++ ) 183 183 { 184 if( m_apcLayerCfg[layer]->m_numSamplePredRefLayers > 0 )185 {186 delete [] m_apcLayerCfg[layer]->m_samplePredRefLayerIds;187 m_apcLayerCfg[layer]->m_samplePredRefLayerIds = NULL;188 }189 if( m_apcLayerCfg[layer]->m_numMotionPredRefLayers > 0 )190 {191 delete [] m_apcLayerCfg[layer]->m_motionPredRefLayerIds;192 m_apcLayerCfg[layer]->m_motionPredRefLayerIds = NULL;193 }194 if( m_apcLayerCfg[layer]->m_numActiveRefLayers > 0 )195 {196 delete [] m_apcLayerCfg[layer]->m_predLayerIds;197 m_apcLayerCfg[layer]->m_predLayerIds = NULL;198 }199 184 if( m_apcLayerCfg[layer] ) 200 185 { … … 2632 2617 #endif 2633 2618 Int* m_aiPad = m_apcLayerCfg[layer]->m_aiPad; 2634 Int* m_aidQP= m_apcLayerCfg[layer]->m_aidQP;2619 Int*& m_aidQP = m_apcLayerCfg[layer]->m_aidQP; 2635 2620 2636 2621 Int& m_iSourceWidth = m_apcLayerCfg[layer]->m_iSourceWidth; -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r1487 r1509 60 60 TAppEncLayerCfg::~TAppEncLayerCfg() 61 61 { 62 if ( m_aidQP)62 if( m_numSamplePredRefLayers > 0 ) 63 63 { 64 delete[] m_aidQP; 64 delete [] m_samplePredRefLayerIds; 65 m_samplePredRefLayerIds = NULL; 66 } 67 68 if( m_numMotionPredRefLayers > 0 ) 69 { 70 delete [] m_motionPredRefLayerIds; 71 m_motionPredRefLayerIds = NULL; 72 } 73 74 if( m_numActiveRefLayers > 0 ) 75 { 76 delete [] m_predLayerIds; 77 m_predLayerIds = NULL; 78 } 79 80 if( m_aidQP ) 81 { 82 delete [] m_aidQP; 65 83 } 66 84 } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r1508 r1509 243 243 UInt layerId = pcPic->getLayerId(); 244 244 rpcSlice->initSlice( layerId ); 245 246 // VPS is used later by accessing from the slice getter 247 rpcSlice->setVPS(m_ppcTEncTop[0]->getVPS()); 245 248 #else 246 249 rpcSlice->initSlice(); … … 552 555 553 556 #if SVC_EXTENSION 554 // VPS is used later by accessing from the slice getter555 rpcSlice->setVPS(m_ppcTEncTop[0]->getVPS());556 557 557 if( layerId > 0 ) 558 558 {
Note: See TracChangeset for help on using the changeset viewer.