Skip to content

Commit

Permalink
AVC: pass SPS-Ext to decoder (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Sep 3, 2024
1 parent cc359f2 commit 015c9cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libheif/codecs/avc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,15 @@ void Box_avcC::get_header_nals(std::vector<uint8_t>& data) const
data.insert(data.end(), sps.begin(), sps.end());
}

for (const auto& spsext : m_sps_ext) {
data.push_back((spsext.size() >> 24) & 0xFF);
data.push_back((spsext.size() >> 16) & 0xFF);
data.push_back((spsext.size() >> 8) & 0xFF);
data.push_back((spsext.size() >> 0) & 0xFF);

data.insert(data.end(), spsext.begin(), spsext.end());
}

for (const auto& pps : m_pps) {
data.push_back((pps.size() >> 24) & 0xFF);
data.push_back((pps.size() >> 16) & 0xFF);
Expand Down

0 comments on commit 015c9cf

Please sign in to comment.