Ticket #258: modification_init_fix.patch

File modification_init_fix.patch, 872 bytes (added by jonatan, 11 years ago)

Fix for the problem with uninitialized variables (for ref pic list modifications) in TComSlice when encoding multiple slices per picture.

  • source/Lib/TLibCommon/TComSlice.cpp

     
    17921792}
    17931793
    17941794TComRefPicListModification::TComRefPicListModification()
     1795: m_bRefPicListModificationFlagL0 (false)
     1796, m_bRefPicListModificationFlagL1 (false)
     1797, m_uiNumberOfRefPicListModificationsL0 (0)
     1798, m_uiNumberOfRefPicListModificationsL1 (0)
    17951799{
    1796   m_bRefPicListModificationFlagL0 = false;
    1797   m_bRefPicListModificationFlagL1 = false;
     1800  ::memset( m_ListIdcL0, 0, sizeof(m_ListIdcL0) );
     1801  ::memset( m_RefPicSetIdxL0, 0, sizeof(m_RefPicSetIdxL0) );
     1802  ::memset( m_ListIdcL1, 0, sizeof(m_ListIdcL1) );
     1803  ::memset( m_RefPicSetIdxL1, 0, sizeof(m_RefPicSetIdxL1) );
    17981804}
    17991805
    18001806TComRefPicListModification::~TComRefPicListModification()