mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-21 07:46:53 +00:00
Add a frame number field to the decode unit struct
This commit is contained in:
1 parent
c386569754
commit
6fb3472aec
2 files changed
+4
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user