mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Reassemble NAL's early
This commit is contained in:
parent
8ca3aab363
commit
ae18e00b13
@ -193,6 +193,10 @@ public class VideoDepacketizer {
|
|||||||
// Add a buffer descriptor describing the NAL data in this packet
|
// Add a buffer descriptor describing the NAL data in this packet
|
||||||
avcNalDataChain.add(data);
|
avcNalDataChain.add(data);
|
||||||
avcNalDataLength += location.offset-start;
|
avcNalDataLength += location.offset-start;
|
||||||
|
|
||||||
|
// Reassemble the NALs if this was the last packet for this frame
|
||||||
|
if (packet.getPacketIndex() + 1 == packet.getTotalPackets())
|
||||||
|
reassembleAvcNal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user