int lengthSize = ((AvcConfigurationBox) Path.getPath(trackBox, "mdia/minf/stbl/stsd/avc1/avcC")).getLengthSizeMinusOne() + 1; for (Sample sample : sl) { ByteBuffer bb = sample.asByteBuffer();
final int len = avcC.getLengthSizeMinusOne() + 1; final ByteBuffer buf = ByteBuffer.allocate(len);
if (box instanceof AvcConfigurationBox) { AvcConfigurationBox avcC = (AvcConfigurationBox) (configurationBox = box); nalLengthSizes.put(sampleEntry, avcC.getLengthSizeMinusOne() + 1); subSampleEncryption= true; } else if (box instanceof HevcConfigurationBox) {
final int len = avcC.getLengthSizeMinusOne() + 1; final ByteBuffer buf = ByteBuffer.allocate(len);
if (box instanceof AvcConfigurationBox) { AvcConfigurationBox avcC = (AvcConfigurationBox) (configurationBox = box); nalLengthSizes.put(sampleEntry, avcC.getLengthSizeMinusOne() + 1); subSampleEncryption= true; } else if (box instanceof HevcConfigurationBox) {