src/main/java/org/jcodec/codecs/h264/H264Utils.java
public static SampleEntry createMOVSampleEntryFromBytes(ByteBuffer codecPrivate) {
        List<ByteBuffer> rawSPS = getRawSPS(codecPrivate.duplicate());
        List<ByteBuffer> rawPPS = getRawPPS(codecPrivate.duplicate());
        return createMOVSampleEntryFromSpsPpsList(rawSPS, rawPPS, 4);
    }
public static SampleEntry createMOVSampleEntryFromBytes(ByteBuffer codecPrivate) {
        List<ByteBuffer> rawSPS = getRawSPS(codecPrivate.duplicate());
        List<ByteBuffer> rawPPS = getRawPPS(codecPrivate.duplicate());
        return createMOVSampleEntryFromSpsPpsList(rawSPS, rawPPS, 4);
    }
public static SampleEntry createMOVSampleEntryFromBytes ( ByteBuffer codecPrivate ) { List < ByteBuffer > rawSPS = getRawSPS ( codecPrivate . duplicate ( ) ) ; List < ByteBuffer > rawPPS = getRawPPS ( codecPrivate . duplicate ( ) ) ; return createMOVSampleEntryFromSpsPpsList ( 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
Creates a MP4 sample entry given AVC / H . 264 codec private .