mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 19:13:03 +00:00
Merge pull request #3 from irtimmer/direct_decode
Reassemble NAL's early
This commit is contained in:
commit
d54c1b07ce
@ -193,6 +193,10 @@ public class VideoDepacketizer {
|
||||
// Add a buffer descriptor describing the NAL data in this packet
|
||||
avcNalDataChain.add(data);
|
||||
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