humble-video-noarch/src/main/java/io/humble/video/MediaPacket.java
public static MediaPacket make(int size) {
    long cPtr = VideoJNI.MediaPacket_make__SWIG_3(size);
    return (cPtr == 0) ? null : new MediaPacket(cPtr, false);
  }
public static MediaPacket make(int size) {
    long cPtr = VideoJNI.MediaPacket_make__SWIG_3(size);
    return (cPtr == 0) ? null : new MediaPacket(cPtr, false);
  }
Allocate a new packet.<br>
<p><br>
Note that any buffers this packet needs will be<br>
lazily allocated (i.e. we won't actually grab all<br>
the memory until we need it).<br>
</p><br>
@param size The maximum size, in bytes, of data you<br>
want to put in this packet.<br>
<br>
@return a new packet, or null on error.