static int readBlockSize(RandomAccessFile raf) throws IOException {
        // read size
        byte b[]=new byte[3];
        MediaFileUtil.read_sure(raf,b);
        return ((b[0]& 0xff)<<16) + ((b[1]& 0xff)<<8) + (b[2]& 0xff);
    }