public static MediaPacket make(MediaPacket packet, boolean copyData) {
    """
	Allocate a new packet wrapping the existing contents of<br>
	a passed in packet.  Callers can then modify<br>
	#getPts(),<br>
	#getDts() and other get/set methods without<br>
	modifying the original packet.<br>
	<br>
	@param packet Packet to reuse buffer from and to<br>
	copy settings from.<br>
	@param copyData if true copy data from packet<br>
	into our own buffer.  If false, share the same<br>
	data buffer that packet uses<br>
	<br>
	@return a new packet or null on error.
    """
    long cPtr = VideoJNI.MediaPacket_make__SWIG_2(MediaPacket.getCPtr(packet), packet, copyData);
    return (cPtr == 0) ? null : new MediaPacket(cPtr, false);
  }
public static MediaPacket make(MediaPacket packet, boolean copyData) {
    long cPtr = VideoJNI.MediaPacket_make__SWIG_2(MediaPacket.getCPtr(packet), packet, copyData);
    return (cPtr == 0) ? null : new MediaPacket(cPtr, false);
  }
public static MediaPacket make ( MediaPacket packet , boolean copyData ) { long cPtr = VideoJNI . MediaPacket_make__SWIG_2 ( MediaPacket . getCPtr ( packet ) , packet , copyData ) ; return ( cPtr == 0 ) ? null : new MediaPacket ( cPtr , false ) ; }
Allocate a new packet wrapping the existing contents of<br>
a passed in packet.  Callers can then modify<br>
#getPts(),<br>
#getDts() and other get/set methods without<br>
modifying the original packet.<br>
<br>
@param packet Packet to reuse buffer from and to<br>
copy settings from.<br>
@param copyData if true copy data from packet<br>
into our own buffer.  If false, share the same<br>
data buffer that packet uses<br>
<br>
@return a new packet or null on error.
Allocate a new packet wrapping the existing contents of<br > a passed in packet . Callers can then modify<br > #getPts () <br > #getDts () and other get / set methods without<br > modifying the original packet . <br > <br >