src/main/java/org/jcodec/codecs/h264/H264Utils.java
public static AvcCBox createAvcCFromBytes(ByteBuffer codecPrivate) {
        List<ByteBuffer> rawSPS = getRawSPS(codecPrivate.duplicate());
        List<ByteBuffer> rawPPS = getRawPPS(codecPrivate.duplicate());
        return createAvcCFromPS(rawSPS, rawPPS, 4);
    }
public static AvcCBox createAvcCFromBytes(ByteBuffer codecPrivate) {
        List<ByteBuffer> rawSPS = getRawSPS(codecPrivate.duplicate());
        List<ByteBuffer> rawPPS = getRawPPS(codecPrivate.duplicate());
        return createAvcCFromPS(rawSPS, rawPPS, 4);
    }
Creates a MP4 sample entry given AVC/H.264 codec private.

@param codecPrivate
Array containing AnnexB delimited (00 00 00 01) SPS/PPS NAL
units.
@return MP4 sample entry