Skip to content
Snippets Groups Projects
Commit 5e599722 authored by Karsten Suehring's avatar Karsten Suehring
Browse files

Merge branch 'fix1394' into 'master'

Fix #1394: correctly determine whether a NAL unit is a VCL unit

See merge request jvet/VVCSoftware_VTM!1981
parents 1d263977 50fefa44
No related branches found
No related tags found
1 merge request!1981Fix #1394: correctly determine whether a NAL unit is a VCL unit
Pipeline #6025 passed
......@@ -164,7 +164,8 @@ void read(InputNALUnit& nalu)
InputBitstream &bitstream = nalu.getBitstream();
vector<uint8_t>& nalUnitBuf=bitstream.getFifo();
// perform anti-emulation prevention
convertPayloadToRBSP(nalUnitBuf, &bitstream, (nalUnitBuf[0] & 64) == 0);
const NalUnitType nut = (NalUnitType)(nalUnitBuf[1] >> 3);
convertPayloadToRBSP(nalUnitBuf, &bitstream, nut <= NAL_UNIT_RESERVED_IRAP_VCL_11);
bitstream.resetToStart();
readNalUnitHeader(nalu);
}
......
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