private int handleSingleNalUnitPacket(Buffer input,Buffer output){
  byte[] bufferData=(byte[])input.getData();
  int bufferDataLength=bufferData.length;
  byte[] data=new byte[bufferDataLength];
  System.arraycopy(bufferData,0,data,0,bufferDataLength);
  output.setData(data);
  output.setLength(data.length);
  output.setOffset(0);
  output.setTimeStamp(input.getTimeStamp());
  output.setSequenceNumber(input.getSequenceNumber());
  output.setVideoOrientation(input.getVideoOrientation());
  output.setFormat(input.getFormat());
  output.setFlags(input.getFlags());
  return BUFFER_PROCESSED_OK;
}

private int handleSingleNalUnitPacket ( Buffer input , Buffer output ) { byte [ ] bufferData = ( byte [ ] ) input . getData ( ) ; int bufferDataLength = bufferData . length ; byte [ ] data = new byte [ bufferDataLength ] ; System . arraycopy ( bufferData , 0 , data , 0 , bufferDataLength ) ; output . setData ( data ) ; output . setLength ( data . length ) ; output . setOffset ( 0 ) ; output . setTimeStamp ( input . getTimeStamp ( ) ) ; output . setSequenceNumber ( input . getSequenceNumber ( ) ) ; output . setVideoOrientation ( input . getVideoOrientation ( ) ) ; output . setFormat ( input . getFormat ( ) ) ; output . setFlags ( input . getFlags ( ) ) ; return BUFFER_PROCESSED_OK ; }
handle single nal unit packet
