Skip to content
Snippets Groups Projects
Commit 545123f1 authored by Hendry's avatar Hendry
Browse files

add a checking for temporal Id of GDR picture

parent 11d7526e
No related branches found
No related tags found
1 merge request!918JVET-N0865: GDR Non-Signalling Part
...@@ -281,6 +281,7 @@ ...@@ -281,6 +281,7 @@
#define JVET_N0100_PROPOSAL1 1 // JVET-N0100: ltrp picture signalling #define JVET_N0100_PROPOSAL1 1 // JVET-N0100: ltrp picture signalling
#define JVET_N0865_SYNTAX 1 // JVET_N0865 syntax elements #define JVET_N0865_SYNTAX 1 // JVET_N0865 syntax elements
#define JVET_N0865_NONSYNTAX 1 // JVET_N0865 other than syntax parts
#define JVET_N0865_GRA2GDR 1 // Changing the name of GRA to GDR #define JVET_N0865_GRA2GDR 1 // Changing the name of GRA to GDR
#define EMULATION_PREVENTION_FIX 1 // fix for start code emulation reported in #270. Diverges from specification text #define EMULATION_PREVENTION_FIX 1 // fix for start code emulation reported in #270. Diverges from specification text
......
...@@ -1135,6 +1135,11 @@ bool DecLib::xDecodeSlice(InputNALUnit &nalu, int &iSkipFrame, int iPOCLastDispl ...@@ -1135,6 +1135,11 @@ bool DecLib::xDecodeSlice(InputNALUnit &nalu, int &iSkipFrame, int iPOCLastDispl
m_apcSlicePilot->setNalUnitType(nalu.m_nalUnitType); m_apcSlicePilot->setNalUnitType(nalu.m_nalUnitType);
m_apcSlicePilot->setTLayer(nalu.m_temporalId); m_apcSlicePilot->setTLayer(nalu.m_temporalId);
#if JVET_N0865_NONSYNTAX
if (nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_GDR)
CHECK(nalu.m_temporalId != 0, "Current GDR picture has TemporalId not equal to 0");
#endif
m_HLSReader.setBitstream( &nalu.getBitstream() ); m_HLSReader.setBitstream( &nalu.getBitstream() );
m_HLSReader.parseSliceHeader( m_apcSlicePilot, &m_parameterSetManager, m_prevTid0POC ); m_HLSReader.parseSliceHeader( m_apcSlicePilot, &m_parameterSetManager, m_prevTid0POC );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment