Add a frame number field to the decode unit struct

This commit is contained in:
Cameron Gutman 2017-06-10 13:41:21 -07:00
parent c386569754
commit 6fb3472aec
2 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,9 @@ typedef struct _LENTRY {
// A decode unit describes a buffer chain of video data from multiple packets
typedef struct _DECODE_UNIT {
// Frame number
int frameNumber;
// Length of the entire buffer chain in bytes
int fullLength;

View File

@ -230,6 +230,7 @@ static void reassembleFrame(int frameNumber) {
if (qdu != NULL) {
qdu->decodeUnit.bufferList = nalChainHead;
qdu->decodeUnit.fullLength = nalChainDataLength;
qdu->decodeUnit.frameNumber = frameNumber;
nalChainHead = NULL;
nalChainDataLength = 0;