<div dir="ltr">Hi,<div><br></div><div>We noticed that one of our internal tests fails when trying to access uninitialized memory.<br><br></div><div>In source/encoder/slicetype.cpp, processTasks() accesses `m_lookahead.m_metld` which is only initialized in the constructor when `m_param->bEnableTemporalFilter` is true. This can lead to a crash when calling processTasks with bEnableTemporalFilter = false.<div><br></div><div>It seems just moving the declaration closer to the use in that function should be sufficient?</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div></div></div>