diff --git a/source/App/EncoderApp/encmain.cpp b/source/App/EncoderApp/encmain.cpp index abe16cd00694d10fbe279dd88b37b251047133a8..b2bda223c621a9fd0a1461afe214bf60c54cde35 100644 --- a/source/App/EncoderApp/encmain.cpp +++ b/source/App/EncoderApp/encmain.cpp @@ -121,6 +121,9 @@ int main(int argc, char* argv[]) bool resized = false; int layerIdx = 0; + initROM(); + TComHash::initBlockSizeToIndex(); + char** layerArgv = new char*[argc]; do diff --git a/source/Lib/CommonLib/Slice.cpp b/source/Lib/CommonLib/Slice.cpp index cd8cb26580b8cc2cd7fc84a837c4ef395813081c..9c3613593b277135b0bdafba3f5cb24e6835cf65 100644 --- a/source/Lib/CommonLib/Slice.cpp +++ b/source/Lib/CommonLib/Slice.cpp @@ -1887,6 +1887,9 @@ PPS::~PPS() APS::APS() : m_APSId(0) , m_temporalId( 0 ) +#if JVET_N0278_FIXES +, m_layerId( 0 ) +#endif { } diff --git a/source/Lib/EncoderLib/EncLib.cpp b/source/Lib/EncoderLib/EncLib.cpp index ce9583ba5ebbd264836520384dcf48039ff2889b..0919b23fb389f299378cca2f6c41697e98eee2cc 100644 --- a/source/Lib/EncoderLib/EncLib.cpp +++ b/source/Lib/EncoderLib/EncLib.cpp @@ -112,10 +112,11 @@ void EncLib::create () { #if JVET_N0278_FIXES m_layerId = layerId; -#endif +#else // initialize global variables initROM(); TComHash::initBlockSizeToIndex(); +#endif m_iPOCLast = m_compositeRefEnabled ? -2 : -1; // create processing unit classes m_cGOPEncoder. create( );