public long create_sample_size_atom(MP4DataStream bitstream) throws IOException {
  create_full_atom(bitstream);
  samples=new Vector<Integer>();
  sampleSize=(int)bitstream.readBytes(4);
  sampleCount=(int)bitstream.readBytes(4);
  readed+=8;
  if (sampleSize == 0) {
    for (int i=0; i < sampleCount; i++) {
      int size=(int)bitstream.readBytes(4);
      samples.addElement(Integer.valueOf(size));
      readed+=4;
    }
  }
  return readed;
}

public long create_sample_size_atom ( MP4DataStream bitstream ) throws IOException { create_full_atom ( bitstream ) ; samples = new Vector < Integer > ( ) ; sampleSize = ( int ) bitstream . readBytes ( 4 ) ; sampleCount = ( int ) bitstream . readBytes ( 4 ) ; readed += 8 ; if ( sampleSize == 0 ) { for ( int i = 0 ; i < sampleCount ; i ++ ) { int size = ( int ) bitstream . readBytes ( 4 ) ; samples . addElement ( Integer . valueOf ( size ) ) ; readed += 4 ; } } return readed ; }
loads mp4samplesizeatom atom from the input bitstream .
