public long create_sync_sample_atom(MP4DataStream bitstream) throws IOException {
  log.trace("Sync sample atom contains keyframe info");
  create_full_atom(bitstream);
  syncSamples=new Vector<Integer>();
  entryCount=(int)bitstream.readBytes(4);
  log.trace("Sync entries: {}",entryCount);
  readed+=4;
  for (int i=0; i < entryCount; i++) {
    int sample=(int)bitstream.readBytes(4);
    syncSamples.addElement(Integer.valueOf(sample));
    readed+=4;
  }
  return readed;
}

public long create_sync_sample_atom ( MP4DataStream bitstream ) throws IOException { log . trace ( "Sync sample atom contains keyframe info" ) ; create_full_atom ( bitstream ) ; syncSamples = new Vector < Integer > ( ) ; entryCount = ( int ) bitstream . readBytes ( 4 ) ; log . trace ( "Sync entries: {}" , entryCount ) ; readed += 4 ; for ( int i = 0 ; i < entryCount ; i ++ ) { int sample = ( int ) bitstream . readBytes ( 4 ) ; syncSamples . addElement ( Integer . valueOf ( sample ) ) ; readed += 4 ; } return readed ; }
loads mp4syncsampleatom atom from the input bitstream .
