@SuppressWarnings("unused") public void createES_Descriptor(MP4DataStream bitstream) throws IOException {
  int ES_ID=(int)bitstream.readBytes(2);
  int flags=(int)bitstream.readBytes(1);
  boolean streamDependenceFlag=(flags & (1 << 7)) != 0;
  boolean urlFlag=(flags & (1 << 6)) != 0;
  boolean ocrFlag=(flags & (1 << 5)) != 0;
  readed+=3;
  if (streamDependenceFlag) {
    bitstream.skipBytes(2);
    readed+=2;
  }
  if (urlFlag) {
    int str_size=(int)bitstream.readBytes(1);
    bitstream.readString(str_size);
    readed+=str_size + 1;
  }
  if (ocrFlag) {
    bitstream.skipBytes(2);
    readed+=2;
  }
  while (readed < size) {
    MP4Descriptor descriptor=createDescriptor(bitstream);
    children.addElement(descriptor);
    readed+=descriptor.getReaded();
  }
}

@ SuppressWarnings ( "unused" ) public void createES_Descriptor ( MP4DataStream bitstream ) throws IOException { int ES_ID = ( int ) bitstream . readBytes ( 2 ) ; int flags = ( int ) bitstream . readBytes ( 1 ) ; boolean streamDependenceFlag = ( flags & ( 1 << 7 ) ) != 0 ; boolean urlFlag = ( flags & ( 1 << 6 ) ) != 0 ; boolean ocrFlag = ( flags & ( 1 << 5 ) ) != 0 ; readed += 3 ; if ( streamDependenceFlag ) { bitstream . skipBytes ( 2 ) ; readed += 2 ; } if ( urlFlag ) { int str_size = ( int ) bitstream . readBytes ( 1 ) ; bitstream . readString ( str_size ) ; readed += str_size + 1 ; } if ( ocrFlag ) { bitstream . skipBytes ( 2 ) ; readed += 2 ; } while ( readed < size ) { MP4Descriptor descriptor = createDescriptor ( bitstream ) ; children . addElement ( descriptor ) ; readed += descriptor . getReaded ( ) ; } }
loads the mp4es_descriptor from the input bitstream .
