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
Yonatan Shiferaw
vtm partial output
Commits
4b33e26d
Commit
4b33e26d
authored
Mar 08, 2021
by
Jack Enhorn
Browse files
Fix for overlapping GDR periods
parent
4951ad32
Changes
2
Hide whitespace changes
Inline
Side-by-side
source/Lib/DecoderLib/DecLib.cpp
View file @
4b33e26d
...
...
@@ -2107,9 +2107,9 @@ bool DecLib::xDecodeSlice(InputNALUnit &nalu, int &iSkipFrame, int iPOCLastDispl
m_accessUnitNoOutputPriorPicFlags
.
push_back
(
m_apcSlicePilot
->
getNoOutputOfPriorPicsFlag
());
}
if
(
m_picHeader
.
getGdrPicFlag
()
)
if
(
m_picHeader
.
getGdrPicFlag
()
&&
m_prevGDRInSameLayerPOC
[
nalu
.
m_nuhLayerId
]
==
-
MAX_INT
)
// Only care about recovery POC if it is the first coded GDR picture in the layer
{
m_prevGDRInSameLayerRecoveryPOC
[
nalu
.
m_nuhLayerId
]
=
m_picHeader
.
getRecoveryPocCnt
();
m_prevGDRInSameLayerRecoveryPOC
[
nalu
.
m_nuhLayerId
]
=
m_apcSlicePilot
->
getPOC
()
+
m_picHeader
.
getRecoveryPocCnt
();
}
PPS
*
pps
=
m_parameterSetManager
.
getPPS
(
m_picHeader
.
getPPSId
());
...
...
source/Lib/DecoderLib/DecLib.h
View file @
4b33e26d
...
...
@@ -230,7 +230,7 @@ public:
void
updateAssociatedIRAP
();
void
updatePrevGDRInSameLayer
();
void
updatePrevIRAPAndGDRSubpic
();
bool
getGDRRecoveryPocReached
()
{
return
(
m_pcPic
->
getPOC
()
>=
m_prevGDRInSameLayerPOC
[
m_pcPic
->
layerId
]
+
m_prevGDRInSameLayerRecoveryPOC
[
m_pcPic
->
layerId
]
);
}
bool
getGDRRecoveryPocReached
()
{
return
(
m_pcPic
->
getPOC
()
>=
m_prevGDRInSameLayerRecoveryPOC
[
m_pcPic
->
layerId
]
);
}
#if JVET_S0078_NOOUTPUTPRIORPICFLAG
bool
getAudIrapOrGdrAuFlag
()
const
{
return
m_audIrapOrGdrAuFlag
;
}
...
...
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