public void appendToNalUnit(byte[] data,int offset,int limit){
  if (!isFilling) {
    return;
  }
  int readLength=limit - offset;
  if (nalData.length < nalLength + readLength) {
    nalData=Arrays.copyOf(nalData,(nalLength + readLength) * 2);
  }
  System.arraycopy(data,offset,nalData,nalLength,readLength);
  nalLength+=readLength;
}

public void appendToNalUnit ( byte [ ] data , int offset , int limit ) { if ( ! isFilling ) { return ; } int readLength = limit - offset ; if ( nalData . length < nalLength + readLength ) { nalData = Arrays . copyOf ( nalData , ( nalLength + readLength ) * 2 ) ; } System . arraycopy ( data , offset , nalData , nalLength , readLength ) ; nalLength += readLength ; }
invoked to pass stream data . the data passed should not include 4 byte nal unit prefixes .
