Skip to content

Commit

Permalink
Fix nextNal declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdr428 committed Aug 9, 2023
1 parent 0c2601e commit 8839d5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tsMuxer/h264StreamReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ int H264StreamReader::intDecodeNAL(uint8_t *buff)
{
const auto nal_unit_type = static_cast<NALUnit::NALType>(*buff & 0x1f);
int nalRez;
uint8_t *nextNal;
m_spsPpsFound = false;

// First NAL of Access Unit
Expand Down Expand Up @@ -807,7 +808,7 @@ int H264StreamReader::intDecodeNAL(uint8_t *buff)
m_delimiterFound = true;
// Remaining NALs of Access Unit
getAU:
uint8_t *nextNal = NALUnit::findNextNAL(buff, m_bufEnd);
nextNal = NALUnit::findNextNAL(buff, m_bufEnd);
while (true)
{
if (nextNal == m_bufEnd)
Expand Down

0 comments on commit 8839d5f

Please sign in to comment.