Fix suffix NAL - 2/3

Currently tsMuxer does not detect suffix nals (non VCL nals placed after the VCL nals in the nal unit).
Therefore these nals are placed first in the TS PES, before the AUD or next frame nal.

This patch fixes the above.
This commit is contained in:
jcdr428 2019-12-29 22:10:36 +01:00 committed by GitHub
parent 20ac0dde1f
commit 965ee77a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ protected:
void onSplitEvent() override { m_firstFileFrame = true; }
private:
bool isSlice(int nalType) const;
bool isSuffix(int nalType) const;
void incTimings();
int toFullPicOrder(HevcSliceHeader* slice, int pic_bits);
void storeBuffer(MemoryBlock& dst, const uint8_t* data, const uint8_t* dataEnd);