Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Remy Foray
VVCSoftware_VTM
Commits
204b2025
Commit
204b2025
authored
Apr 29, 2019
by
Karsten Suehring
Browse files
fix out of bound array access in MIP
parent
6ee74fa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/Lib/EncoderLib/IntraSearch.cpp
View file @
204b2025
...
...
@@ -1324,28 +1324,27 @@ void IntraSearch::estIntraPredLumaQT( CodingUnit &cu, Partitioner &partitioner,
#if JVET_N0217_MATRIX_INTRAPRED
m_bestCostNonMip
=
MAX_DOUBLE
;
static_vector
<
ModeInfo
,
FAST_UDI_MAX_RDMODE_NUM
>
uiRdModeListTemp
;
for
(
int
i
=
0
;
i
<
numModesForFullRD
;
i
++
)
for
(
int
i
=
0
;
i
<
uiRdModeList
.
size
()
;
i
++
)
{
if
(
!
uiRdModeList
[
i
].
mipFlg
)
{
uiRdModeListTemp
.
push_back
(
uiRdModeList
[
i
]
);
}
}
for
(
int
i
=
0
;
i
<
numModesForFullRD
;
i
++
)
for
(
int
i
=
0
;
i
<
uiRdModeList
.
size
()
;
i
++
)
{
if
(
uiRdModeList
[
i
].
mipFlg
)
{
uiRdModeListTemp
.
push_back
(
uiRdModeList
[
i
]
);
}
}
for
(
int
i
=
0
;
i
<
numModesForFullRD
;
i
++
)
for
(
int
i
=
0
;
i
<
uiRdModeList
.
size
()
;
i
++
)
{
uiRdModeList
[
i
]
=
uiRdModeListTemp
[
i
];
}
#e
lse
#e
ndif
// just to be sure
numModesForFullRD
=
(
int
)
uiRdModeList
.
size
();
#endif
PartSplit
intraSubPartitionsProcOrder
=
TU_NO_ISP
;
int
bestNormalIntraModeIndex
=
-
1
;
#if !JVET_N0217_MATRIX_INTRAPRED
...
...
@@ -3754,4 +3753,4 @@ void IntraSearch::reduceHadCandList(static_vector<T, N>& candModeList, static_ve
candCostList
=
tempCandCostList
;
numModesForFullRD
=
int
(
candModeList
.
size
());
}
#endif
\ No newline at end of file
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment