Commit 80760028 for openh264
commit 80760028a5004df7c6b4f54dd0cf9a62e39ff192
Author: BenzhengZhang <140143892+BenzhengZhang@users.noreply.github.com>
Date: Tue Sep 1 17:02:36 2026 +0800
decoder: zero-initialise CWelsDecoder reordering state in constructor (#3996)
Co-authored-by: benzzhan <benzzhan@cisco.com>
diff --git a/codec/decoder/plus/src/welsDecoderExt.cpp b/codec/decoder/plus/src/welsDecoderExt.cpp
index 55f86e49..30f8db5c 100644
--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -148,6 +148,12 @@ CWelsDecoder::CWelsDecoder (void)
m_pLastDecThrCtx (NULL),
m_iLastBufferedIdx (0),
m_iStreamSeqNum (0) {
+ memset (&m_sReoderingStatus, 0, sizeof (m_sReoderingStatus));
+ m_sReoderingStatus.iMinPOC = IMinInt32;
+ for (int32_t i = 0; i < 16; ++i) {
+ memset (&m_sPictInfoList[i], 0, sizeof (m_sPictInfoList[i]));
+ m_sPictInfoList[i].iPOC = IMinInt32;
+ }
#ifdef OUTPUT_BIT_STREAM
char chFileName[1024] = { 0 }; //for .264
int iBufUsed = 0;