Add a frame number field to the decode unit struct
This commit is contained in:
parent
c386569754
commit
6fb3472aec
2 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue