Commit 19b252cb authored by Karsten Suehring's avatar Karsten Suehring

Fix #1234: add APS NAL unit to list of NAL units having 4-byte start code

parent ab14bc37
...@@ -60,8 +60,8 @@ static std::vector<uint32_t> writeAnnexB(std::ostream& out, const AccessUnit& au ...@@ -60,8 +60,8 @@ static std::vector<uint32_t> writeAnnexB(std::ostream& out, const AccessUnit& au
static const uint8_t start_code_prefix[] = {0,0,0,1}; static const uint8_t start_code_prefix[] = {0,0,0,1};
if (it == au.begin() || nalu.m_nalUnitType == NAL_UNIT_DCI || nalu.m_nalUnitType == NAL_UNIT_SPS || nalu.m_nalUnitType == NAL_UNIT_VPS || nalu.m_nalUnitType == NAL_UNIT_PPS) if (it == au.begin() || nalu.m_nalUnitType == NAL_UNIT_DCI || nalu.m_nalUnitType == NAL_UNIT_VPS || nalu.m_nalUnitType == NAL_UNIT_SPS
|| nalu.m_nalUnitType == NAL_UNIT_PPS || nalu.m_nalUnitType == NAL_UNIT_PREFIX_APS || nalu.m_nalUnitType == NAL_UNIT_SUFFIX_APS)
{ {
/* From AVC, When any of the following conditions are fulfilled, the /* From AVC, When any of the following conditions are fulfilled, the
* zero_byte syntax element shall be present: * zero_byte syntax element shall be present:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment