public long create_sample_to_chunk_atom(MP4DataStream bitstream) throws IOException {
  create_full_atom(bitstream);
  records=new Vector<Record>();
  entryCount=(int)bitstream.readBytes(4);
  readed+=4;
  for (int i=0; i < entryCount; i++) {
    int firstChunk=(int)bitstream.readBytes(4);
    int samplesPerChunk=(int)bitstream.readBytes(4);
    int sampleDescriptionIndex=(int)bitstream.readBytes(4);
    records.addElement(new Record(firstChunk,samplesPerChunk,sampleDescriptionIndex));
    readed+=12;
  }
  return readed;
}

public long create_sample_to_chunk_atom ( MP4DataStream bitstream ) throws IOException { create_full_atom ( bitstream ) ; records = new Vector < Record > ( ) ; entryCount = ( int ) bitstream . readBytes ( 4 ) ; readed += 4 ; for ( int i = 0 ; i < entryCount ; i ++ ) { int firstChunk = ( int ) bitstream . readBytes ( 4 ) ; int samplesPerChunk = ( int ) bitstream . readBytes ( 4 ) ; int sampleDescriptionIndex = ( int ) bitstream . readBytes ( 4 ) ; records . addElement ( new Record ( firstChunk , samplesPerChunk , sampleDescriptionIndex ) ) ; readed += 12 ; } return readed ; }
loads mp4sampletochunkatom atom from the input bitstream .
