Merge pull request #3 from irtimmer/direct_decode

Reassemble NAL's early
This commit is contained in:
Cameron Gutman 2014-02-17 12:14:55 -05:00
commit d54c1b07ce

View File

@ -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();
}
}
}