mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Add a frame number field to the decode unit struct
This commit is contained in:
parent
c386569754
commit
6fb3472aec
@ -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…
x
Reference in New Issue
Block a user